Revert "osxkeychain: state to skip unnecessary store operations"#1998
Open
KojiNakamaru wants to merge 1 commit intogitgitgadget:masterfrom
Open
Revert "osxkeychain: state to skip unnecessary store operations"#1998KojiNakamaru wants to merge 1 commit intogitgitgadget:masterfrom
KojiNakamaru wants to merge 1 commit intogitgitgadget:masterfrom
Conversation
This reverts commit e1ab45b. That commit was trying to skip to store a credential returned by "git-credential-osxkeychain get" by setting "state[]=osxkeychain:seen=1". However, this state[] is kept even if a credential returned by "git-credential-osxkeychain get" is invalid and another subsequent helper's "get" returns a valid credential. Another subsequent helper (such as [1]) may expect git-credential-osxkeychain to store the valid credential so that "store" cannot be skipped by just checking "state[]=osxkeychain:seen=1". In order to solve this issue, the state[] mechanism can be refined or "osxkeychain:seen" can encode the whole information of the last "get". For now, let's revert the change. [1]: https://github.com/hickford/git-credential-oauth Reported-by: Petter Sælen <petter@saelen.eu> Signed-off-by: Koji Nakamaru <koji.nakamaru@gree.net>
Author
|
/preview |
|
Preview email sent as pull.1998.git.1762930718283.gitgitgadget@gmail.com |
Author
|
/submit |
|
Submitted as pull.1998.git.1762930881599.gitgitgadget@gmail.com To fetch this version into To fetch this version to local tag |
|
On the Git mailing list, Junio C Hamano wrote (reply to this): |
|
On the Git mailing list, Koji Nakamaru wrote (reply to this): |
|
On the Git mailing list, "brian m. carlson" wrote (reply to this): |
|
User |
|
On the Git mailing list, Koji Nakamaru wrote (reply to this): |
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
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.
cc: "brian m. carlson" sandals@crustytoothpaste.net