Agent-side checkout fails

Recently, it became clear that one of my TC projects needs to be able to access git commands during the build.

I therefore changed the VCS root from 'Checkout on server' (which works perfectly) to 'Checkout on agent'.
Now I always get the following error:

Failed to perform checkout on agent: '"C:\Program Files (x86)\Git\bin\git.exe" fetch --progress origin +refs/heads/develop:refs/heads/develop' command failed.

stderr: fatal: '\mcmsmain\dev\Git Repository\Combined' does not appear to be a git repository

fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

The repo address has not changed.  The agent and the server are running on the same machine, and the auth mode is Anonymous.

Can anyone suggest what might be the cause of this problem.  I note that the line beginning 'stderr:' lists the address as  '\mcmsmain\dev\Git Repository\Combined',
rather than (as it should be) '\\mcmsmain\dev\Git Repository\Combined', yet the VCS configuration definitely lists the correct path, and it works correctly in
server-side checkout mode.  I have tried using "\\\\mcmsmain\dev" (which sometimes fixes this problem in other scenarios) in VCS config,. but TC rejects it
as invalid.

Does anyone have any ideas how I could fix this?

Thanks

1 comment
Comment actions Permalink

Hello Nick,

Could you please attach screenshot of the VCS root settings?

0

Please sign in to leave a comment.