summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-04-03 10:29:24 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-04-03 10:29:24 -0700
commit1b68962b29e39b0455e0f15d6b95edc65accb98c (patch)
treeb30eacde916593628825ddedac19074b4665f52f /t
parentMerge branch 'mp/upload-pack-use-embedded-args' (diff)
parentcredential: let empty credential specs reset helper list (diff)
downloadtgif-1b68962b29e39b0455e0f15d6b95edc65accb98c.tar.xz
Merge branch 'jk/credential-clear-config'
The credential.helper configuration variable is cumulative and there is no good way to override it from the command line. As a special case, giving an empty string as its value now serves as the signal to clear the values specified in various files. * jk/credential-clear-config: credential: let empty credential specs reset helper list
Diffstat (limited to 't')
-rwxr-xr-xt/t0300-credentials.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t0300-credentials.sh b/t/t0300-credentials.sh
index d7ef44b4a2..03bd31e9f2 100755
--- a/t/t0300-credentials.sh
+++ b/t/t0300-credentials.sh
@@ -298,4 +298,15 @@ test_expect_success 'helpers can abort the process' '
test_cmp expect stdout
'
+test_expect_success 'empty helper spec resets helper list' '
+ test_config credential.helper "verbatim file file" &&
+ check fill "" "verbatim cmdline cmdline" <<-\EOF
+ --
+ username=cmdline
+ password=cmdline
+ --
+ verbatim: get
+ EOF
+'
+
test_done