Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio 2017 keeps prompting for credentials despite GCM being configured #858

Open
edgariscoding opened this issue Jul 11, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@edgariscoding
Copy link

commented Jul 11, 2019

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

Which service are you trying to connect to

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

If AzureDevops Hosted describe your url

  • dev.azure.com/org
  • org.visualstudio.com

If you're using Azure DevOps, can you access the repository in the browser via the same URL?

  • Yes
  • No, I get a permission error.
  • No, for a different reason:

If you're using Azure DevOps, and the account picker shows more than one identity as you authenticate, check that you selected the same one that has access on the web.

  • [x} I only see one identity.
  • I checked each and none worked.

Expected behavior
I expect to be able to clone, push, and pull without having an infinite number of credential prompts. I expect GCM to prompt me for my credentials once and then it should magically work.

Actual behavior
The most recent time this happened was when I attempted to push commits to my remote repo. I got a number of credential prompts none of which seemed to work, after what I think was the 4th one, the Synchronization pane in Visual Studio showed the following error: "Failed to push to the remote repository. See the Output window for more details."

The commits WERE actually pushed though.

I've run git config --list and credential.helper is set to manager

This is what the output window shows:

Opening repositories:
C:\Users\name.last\Source\Repos\MyProject
Commit 940c6e24 created locally in repository C:\Users\c\Source\Repos\MyProject
Pushing develop
Remote: 
Remote: Analyzing objects... (3/3) (48 ms)        
Remote: Storing packfile... done (121 ms)        
Remote: Storing index... done (91 ms)        
Checked out refs/heads/master
Checked out refs/heads/develop
Checked out refs/heads/master
Error encountered while pushing to the remote repository: Git failed with a fatal error.
failed to detect Username in target URL.
unable to read askpass response from 'C:/program files (x86)/microsoft visual studio/2017/professional/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/git-core/git-askpass.exe'
could not read Username for 'https://dev.azure.com': terminal prompts disabled
Delta compression using up to 8 threads.
Compressing objects:  20% (1/5)   
Compressing objects:  40% (2/5)   
Compressing objects:  60% (3/5)   
Compressing objects:  80% (4/5)   
Compressing objects: 100% (5/5)   
Compressing objects: 100% (5/5), done.
Writing objects:  20% (1/5)   
Writing objects:  40% (2/5)   
Writing objects:  60% (3/5)   
Writing objects:  80% (4/5)   
Writing objects: 100% (5/5)   
Writing objects: 100% (5/5), 489 bytes | 489.00 KiB/s, done.
Total 5 (delta 4), reused 0 (delta 0)
POST git-receive-pack (625 bytes)
remote: 
remote: Analyzing objects... (5/5) (34 ms)        
remote: Storing packfile... done (133 ms)        
remote: Storing index... done (97 ms)        
To https://dev.azure.com/MyCompany/My%20Project/_git/MyProject
   d00fc98c03..3fba05bb57  master -> master
updating local tracking ref 'refs/remotes/origin/master'

Set the env variables GCM_TRACE=1 and GIT_TRACE=1 and run your git command. Redact any private information and attach the log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.