summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-04-14 18:57:43 -0700
committerJunio C Hamano <gitster@pobox.com>2016-04-14 18:57:43 -0700
commit0759dfdd9c888cbec92240ada3193b57862b2265 (patch)
treef0011ec6a7f6714efbde4b82a6940affb867286c /t
parentf1cfacff51f4c72110fd30f39c4c04b15e84eac7 (diff)
parent24990b2febec5e00ecc8c7c57614b7431b86f7a5 (diff)
downloadgit-0759dfdd9c888cbec92240ada3193b57862b2265.tar.gz
Merge branch 'jk/config-get-urlmatch' into maint
"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 &&