Cannot specify git path, no internal.properties file
Answered
Hello
My TeamCity says
Cannot run git garbage collection using git at path 'git'. It is recommended to perform garbage collection in git repositories periodically to improve performance of changes collection.
Please install git client on the TeamCity server machine and specify a path to it in the teamcity.server.git.executable.path
But I cannot find that internal.properties file in the TeamCity folder. Do I have to create it myself?
Please sign in to leave a comment.
Hello Marco!
As per this article, you have two options to specify the path to the Git executable in order to perform Git garbage collection:
1) by ensuring the git client is on PATH and restarting the TeamCity server so it can use the updated PATH value;
2) by using teamcity.server.git.executable.path to point to the Git executable.
For the latter approach, you can edit internal.properties via Administration | Server Administration | Diagnostics page, Internal Properties tab.
Please let me know if this helps.