credential: avoid erasing distinct password
commitaeb21ce22eec112b37975443a160cb5418c6ec22
authorM Hickford <mirth.hickford@gmail.com>
Thu, 15 Jun 2023 19:19:32 +0000 (15 19:19 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Jun 2023 20:26:39 +0000 (15 13:26 -0700)
tree8137c8aed31a7ee6b35c48ace8646c5e4126cfa5
parentfe86abd7511a9a6862d5706c6fa1d9b57a63ba09
credential: avoid erasing distinct password

Test that credential helpers do not erase a password distinct from the
input. Such calls can happen when multiple credential helpers are
configured.

Fixes for credential-cache and credential-store.

Signed-off-by: M Hickford <mirth.hickford@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/credential-cache--daemon.c
builtin/credential-store.c
credential.c
credential.h
t/lib-credential.sh