summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-04-03 10:29:26 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-04-03 10:29:26 -0700
commitc832cef8aa541cce6e2a53a4e1e466bfe8323531 (patch)
tree862607c5e50a1b1ea9ea542ccb86c9fd8e431465 /t
parentMerge branch 'jk/add-i-highlight' (diff)
parentDocumentation/git-config: fix --get-all description (diff)
downloadtgif-c832cef8aa541cce6e2a53a4e1e466bfe8323531.tar.xz
Merge branch 'jk/config-get-urlmatch'
"git config --get-urlmatch", unlike other variants of the "git config --get" family, did not signal error with its exit status when there was no matching configuration. * jk/config-get-urlmatch: Documentation/git-config: fix --get-all description Documentation/git-config: use bulleted list for exit codes config: fail if --get-urlmatch finds no value
Diffstat (limited to 't')
-rwxr-xr-xt/t1300-repo-config.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index 6767da87cb..3d6f1db9da 100755
--- a/t/t1300-repo-config.sh
+++ b/t/t1300-repo-config.sh
@@ -1144,6 +1144,9 @@ test_expect_success 'urlmatch' '
cookieFile = /tmp/cookie.txt
EOF
+ test_expect_code 1 git config --bool --get-urlmatch doesnt.exist https://good.example.com >actual &&
+ test_must_be_empty actual &&
+
echo true >expect &&
git config --bool --get-urlmatch http.SSLverify https://good.example.com >actual &&
test_cmp expect actual &&