Message ID | 2ece562a5952b5752de5040b17ec36076164c72f.1663865974.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 630a6429a71118332ec3bc5aa58fce66df6ca5fa |
Headers | show |
Series | Correct credential helper discrepancies handling input | expand |
diff --git a/contrib/credential/osxkeychain/git-credential-osxkeychain.c b/contrib/credential/osxkeychain/git-credential-osxkeychain.c index bf77748d602..e29cc28779d 100644 --- a/contrib/credential/osxkeychain/git-credential-osxkeychain.c +++ b/contrib/credential/osxkeychain/git-credential-osxkeychain.c @@ -159,6 +159,11 @@ static void read_credential(void) username = xstrdup(v); else if (!strcmp(buf, "password")) password = xstrdup(v); + /* + * Ignore other lines; we don't know what they mean, but + * this future-proofs us when later versions of git do + * learn new lines, and the helpers are updated to match. + */ } }