Code Monkey home page Code Monkey logo

Comments (7)

artumino avatar artumino commented on May 18, 2024 3

It seems like GetCommand and StoreCommand are looking for different credential keys.
When the GetCommand is executed no username is passed as a parameter which results in the get command looking for the key "git:https://hostname/". When the store command is called the username is passed as a parameter and the credentials are stored with the key "git:https://username@hostname/".
This is probably why it can't find the stored credentials, you can easily work around this issue by manually creating a key with only the hostname ("git:https://git.mps.com.br/" in this case) in the Windows Credential Manager and it should work fine until a proper fix is in place.

from git-credential-manager.

ovasquez avatar ovasquez commented on May 18, 2024 1

@artumino thanks for the workaround. I tried many things, until this solved the problem.
Quick note: the manually created credential didn't work at first because I forgot the slash at the end of the URL, probably the string comparison failed.

from git-credential-manager.

Regenhardt avatar Regenhardt commented on May 18, 2024

Got a similar problem, except for me it only re-asks for credentials on force-push.

from git-credential-manager.

gabyx avatar gabyx commented on May 18, 2024

Got the same problem. Definitely a problem

from git-credential-manager.

mkincaid avatar mkincaid commented on May 18, 2024

See also #142

from git-credential-manager.

mjcheetham avatar mjcheetham commented on May 18, 2024

Hi @beppler; everyone!

Sorry for not responding to this issue sooner. We are aware of the root cause of this problem, as outlaid in #142. (Please watch #142 for future updates on this.)

As I mention in that issue, we're looking at an overhaul of the credential store/recall so that this issue is fixed, and that we can also better support multiple users in other providers too (see #160).

Either adding a credential manually to the Windows Credential Manager without a user name, OR including the username in the remote URL are the best ways to workaround this problem until then. Apologies for the bug!

from git-credential-manager.

mjcheetham avatar mjcheetham commented on May 18, 2024

Closing in favour of #142.

from git-credential-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.