forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
credential.c: fix credential reading for DOS systems #2516
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Seems like checker does not understand me :) I signed off commit by real name, as was mentioned in contributing recommendations, but for now checker requires my nickname. |
Looks good! Could you rebase onto |
Sure, done. |
This fix makes using Git credentials more friendly to Windows users. In previous version it was unable to finish input correctly without configuration changes (tested in PowerShell, CMD, Cygwin). We know credential filling should be finished by empty input, but the current implementation does not take into account CR/LF ending, and hence instead of the empty string we get '\r', which is interpreted as an incorrect string. So this commit changes default reading function to a more Windows compatible reading function. Signed-off-by: Nikita Leonov <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
I actually rebased the patch, and augmented the commit message in preparation for sending this off to the Git mailing list. |
git-for-windows-ci
pushed a commit
that referenced
this pull request
Feb 13, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Feb 14, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Feb 14, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Feb 14, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Feb 17, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Feb 17, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Feb 17, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Feb 17, 2020
credential.c: fix credential reading with regards to CR/LF
dscho
added a commit
to dscho/git
that referenced
this pull request
Feb 17, 2020
…redential credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Feb 17, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Feb 17, 2020
credential.c: fix credential reading with regards to CR/LF
dscho
added a commit
that referenced
this pull request
Feb 18, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Feb 18, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 24, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 24, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 24, 2020
credential.c: fix credential reading with regards to CR/LF
dscho
added a commit
that referenced
this pull request
Sep 24, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 25, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 25, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 25, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 25, 2020
credential.c: fix credential reading with regards to CR/LF
dscho
added a commit
that referenced
this pull request
Sep 25, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 25, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 25, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 25, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 27, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 27, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 28, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 28, 2020
credential.c: fix credential reading with regards to CR/LF
dscho
added a commit
that referenced
this pull request
Sep 29, 2020
credential.c: fix credential reading with regards to CR/LF
dscho
added a commit
that referenced
this pull request
Sep 29, 2020
credential.c: fix credential reading with regards to CR/LF
dscho
added a commit
that referenced
this pull request
Sep 29, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 29, 2020
credential.c: fix credential reading with regards to CR/LF
dscho
added a commit
that referenced
this pull request
Sep 30, 2020
credential.c: fix credential reading with regards to CR/LF
dscho
added a commit
that referenced
this pull request
Oct 2, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 2, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 2, 2020
credential.c: fix credential reading with regards to CR/LF
dscho
added a commit
that referenced
this pull request
Oct 2, 2020
credential.c: fix credential reading with regards to CR/LF
dscho
added a commit
that referenced
this pull request
Oct 5, 2020
credential.c: fix credential reading with regards to CR/LF
dscho
added a commit
to dscho/git
that referenced
this pull request
Oct 5, 2020
…redential credential.c: fix credential reading with regards to CR/LF
dscho
added a commit
that referenced
this pull request
Oct 6, 2020
credential.c: fix credential reading with regards to CR/LF
git-for-windows-ci
pushed a commit
that referenced
this pull request
Oct 7, 2020
credential.c: fix credential reading with regards to CR/LF
dscho
added a commit
that referenced
this pull request
Oct 20, 2020
credential.c: fix credential reading with regards to CR/LF
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fix makes using
git credentials
more friendly to Windows users. In previous version it was unable to finish input correctly without configuration changes (was tested in powershell, cmd, cygwin).As we know credential filling should be finished by empty input, but
previous implementation does not take into account 'CLRF' ending, and hence instead of empty string we have '\r', which is interpreted as incorrect string.
So, this commit changes default reading function to more Windows compatible reading function.
Signed-off-by: Nikita Leonov [email protected]