Ignore .git folders as project resource?

Hi all!

Trying to get all of our projects on the same page, and our shared scripts seemed like a good place to start. I created a git repository in C:\Program Files\Inductive Automation\Ignition\data\projects\project name\ignition\script-python, but the designer/gateway throws an error about the .git folder that is created there. Is there anyway to ignore “.git”? I know that the exposure of those folders was meant for version control. Thanks.


IllegalArgumentException: com.inductiveautomation.ignition.common.project.resource.NameInvalidException: Name '.git' is invalid
	caused by NameInvalidException: Name '.git' is invalid

Ignition v8.0.4 (b2019091612)
Java: Azul Systems, Inc. 11.0.4

You should be putting it higher up, in the data/projects folder.

1 Like

At the moment I dont want to do the whole project though, I’d like to just handle the scripts.

You’ll have to handle this with .gitignore or something right now, then.

Right now part of the the project system thinks .git is a folder resource and another is having a fit over the name.

Ignition 8.0.10
@Kevin.Herron

I try to use git with one git repository for one project Ignition.
Instead of a git repository for the whole ignition projects folder.
I don’t wan’t to go deeper like a repo for script only, but for me it make sense that 1 Ignition projet = 1 git repository.

/data/project/global/.git (.git is the directory)
/data/project/global/.gitgnore
/data/project/myProj1/.git
/data/project/myProj2/.git

This works fine, except 2 remarks:

  1. when .git folder content change, Ignition Client receive an update message (It must be because anything change in Ignition gateway projects/myProj folder)
  2. when I restore a project from the gateway .git folder is deleted …

If possible, it would be very usefull that Ignition project management system ignore .git folder and .gitignore files ! in the project/myProject folders

2 Likes