What is the supported git version? Error: "'origin' does not appear to be a git repository"
Hello,
I updated software on the build agent and now ever build configuration reports this when trying do do a git checkout:
Failed to perform checkout on agent: '"C:\Program Files (x86)\Git\bin\git.exe" -c core.askpass=C:\ProgramData\JetBrains\TeamCity\tmp\buildTmp\pass8065203418959365319.bat fetch --progress origin +refs/heads/feature/MM-51-update-der-unittests:refs/heads/feature/MM-51-update-der-unittests' command failed.
exit code: 128
stderr: fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
If I do a manual checkout with e.g
"C:\Program Files (x86)\Git\bin\git.exe" checkout refs/heads/feature/MM-51-update-der-unittests
it works.
Any ideas how to fix this error?
I use TeamCity 10.0.3 on Windows Server.
Regards!
Stefan
Please sign in to leave a comment.
Hello Stefan,
Could you please try to switch to server-side checkout? Does it work? Also please try to create a copy of the VCS root and run the build. Does it run successfully?
Could you please also attach screenshot of the VCS root settings and teamcity-vcs.log file? What software did you update on agent machine?