Git-Credential-Manager-for-Windows icon indicating copy to clipboard operation
Git-Credential-Manager-for-Windows copied to clipboard

Authentication fails and stored credentials are deleted when fetching in parallel

Open erikolofsson opened this issue 5 years ago • 0 comments

I have an application that launches several git commands in parallel (more than 100) to fetch all sub-repositories in the tree.

Which Version of GCM are you using ? Git Credential Manager for Windows version 1.20.0

Which service are you trying to connect to

  • [ ] Azure DevOps
  • [ ] Azure DevOps Server (TFS/on-prem)
  • [x] GitHub
  • [ ] GitHub Enterprise
  • [ ] Bitbucket
  • [ ] Other? - please describe;

Expected behavior It should be possible to launch several git fetch commands in parallel without the authentication failing.

Actual behavior Several of the fetches fails, bringing up the GitHub authentication dialog. After cancelling the login the stored token is removed and you have to login again.

Set the env variables GCM_TRACE=1 and GIT_TRACE=1 and run your git command. Redact any private information and attach the log When I turn on tracing the bug does not reproduce.

erikolofsson avatar Nov 15 '19 14:11 erikolofsson