diff options
author | Jeff King <peff@peff.net> | 2012-07-18 08:04:30 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-07-18 13:26:53 -0700 |
commit | 6319a2a148adaa78f11414e914f8c9f3f1c52b5e (patch) | |
tree | a223fb037abb7b810227eb5efd70550a0f06765a /t/t2014-switch.sh | |
parent | docs/credential: minor clarity fixups (diff) | |
download | tgif-6319a2a148adaa78f11414e914f8c9f3f1c52b5e.tar.xz |
mw-to-git: check blank credential attributes via length
When writing a credential to git-credential, we omit fields
that do not have a true value. This will skip empty or
undefined fields (which we want), but will also accidentally
skip usernames or passwords which happen to have a non-true
value (e.g., "0"). Be more careful by checking for non-zero
length.
Signed-off-by: Jeff King <peff@peff.net>
Acked-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2014-switch.sh')
0 files changed, 0 insertions, 0 deletions