Team city build failure, error "info/refs not valid: is this a git repository"
Hi Team,
Team city does not create build and throws an error while running a build. Please see below error message.
Failed to perform checkout on agent: '"C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass2046537569762565704.bat -c credential.helper= fetch --progress origin +refs/heads/develop:refs/heads/develop' command failed.
exit code: 128
stderr: fatal: TFSpath/info/refs not valid: is this a git repository?
Can you please help us to sort this issue?
Thanks in advance.
Please sign in to leave a comment.
Hello,
Seems like URL specified in the VCS root is incorrect (i.e. is not URL the repository can be cloned from). Please attach screenshot of the VCS root settings if in doubt.
I'd recommend to try cloning the Git repository with Git command line client using the same URL and from the TeamCity server machine.
Hi Yegor Yarko,
I double checked, VCS root is correct and same URL is used to clone from the repository. We tried Git command line to perform some actions (pull the latest changes from develop branch) and seems working for me but team city build server getting failed every time i tried to run build.
We had the same problem in our local machine and we removed proxy settings but we applied same solution to Team City Build setting but it didn't work.
Any solution and suggestion?
Thanks
Hi,
please, as Yegor mentioned, attach a screenshot of the configuration. Relevant logs from the teamcity-vcs.log on the server if the issue is server-side or on the agent if it happens agent-side would also be helpful.