summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorM Hickford <mirth.hickford@gmail.com>2023-07-26 19:51:22 +0000
committerJunio C Hamano <gitster@pobox.com>2023-07-26 13:27:34 -0700
commitcb626f8e5cb76ce081ab0a02656611f05a54cfb5 (patch)
tree34001e4616c7d3d6cd15067572ff0564fb1ccf50 /commit.c
parent7144dee3ec233674ba534797e41fa399708c8313 (diff)
credential/wincred: erase matching creds only
The credential erase request typically includes protocol, host, username and password. credential-wincred erases stored credentials that match protocol, host and username, regardless of password. This is confusing in the case the stored password differs from that in the request. This case can occur when multiple credential helpers are configured. Only erase credential if stored password matches request (or request omits password). This fixes test "helper (wincred) does not erase a password distinct from input" when t0303 is run with GIT_TEST_CREDENTIAL_HELPER set to "wincred". This test was added in aeb21ce22e (credential: avoid erasing distinct password, 2023-06-13). Signed-off-by: M Hickford <mirth.hickford@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions