TeamCity + Git agent side checkout error

I am getting the following error on agent side checkout:

[13:18:33]: [Updating sources: Agent side checkout...] Failed to perform checkout on agent: 'C:\Git\bin\git.exe fetch --no-tags -q origin +refs/heads/master:refs/remotes/origin/master' command failed. stderr: 'D:\TeamCity\Temp\Agent' is not recognized as an internal or external command, operable program or batch file. fatal: The remote end hung up unexpectedly

I have TeamCity 5.1.5 (13602) and Git on Windows 2003. I can run the specified command from the command prompt with no error.

1 comment
Comment actions Permalink

I figured this error out. Apparently, TeamCity/Git does not like spaces in the agent temp directory path.


Please sign in to leave a comment.