Skip to content

Conversation

jouve
Copy link
Contributor

@jouve jouve commented Feb 24, 2016

Hello,

In the current version, the first entry matching protocol/hostname and not protocol/username/hostname is returned.

For exemple:
.git-credentials:

http://titi:pwd1@exemple.com (1)
http://toto:pwd2@exemple.com (2)

then
git clone http://toto@exemple.com will match (1) instead of (2).

@ben
Copy link
Member

ben commented Feb 25, 2016

Heyyy, nice catch. I like it, thanks!

ben added a commit that referenced this pull request Feb 25, 2016
git-credential-read-only should match against username
@ben ben merged commit d4d130b into progit:master Feb 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants