When I try to build using TFS with Git, there\'s a limitation whereby TFS\'s git provider doesn\'t yet support sub modules. Bit of a pain, but what the heck, I\'m able to te
I've fixed a similar issue after much trial and error: it turned out that this was a problem with the TFS pre-build PowerShell script running with no user profile, and therefore GIT couldn't see the credential cache setting for the build user (e.g. as set in C:\Users\theuser\.gitconfig
).
Batch scripts would suffer from the same issue.
The distinctive behaviour was that the git submodule
calls would hang completely, and would put the GIT repository in a very weird state (as noted by the not a tree
errors above).
The hang is due to GIT prompting for the username and password to use, however this is a non-interactive session, so everything just grinds to a halt.
Using wincred
as credential cache, I was able to fix this by:
wincred
by default, even if it has no user config file: git config --system credential.helper wincred