Hi guys, i was following the great info from here but have hit a bit of a snag. After getting it to work in the script playground, for some reason the same script doesn’t complete the action.
What is strange, the add script works but the commit does not. I had to alter slightly from the link above, i am testing on a windows machine so the git.exe path is specified. This script is located in the Project Update -
projects_directory = ‘C:\Program Files\Inductive Automation\Ignition\data\projects’
gitExe = ‘C:\Program Files\Git\Bin\git.exe’
commit_command = ‘{ge} -C {pd} commit -m {msg}’.split(’ ')
commit_command[0] = gitExe
commit_command[2] = projects_directory
commit_command[5] = “testing”
subprocess.call(commit_command)