Added docstring for _getGitPath method