summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-04-14 18:57:43 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-04-14 18:57:43 -0700
commit0759dfdd9c888cbec92240ada3193b57862b2265 (patch)
treef0011ec6a7f6714efbde4b82a6940affb867286c /t
parentMerge branch 'pb/t7502-drop-dup' into maint (diff)
parentDocumentation/git-config: fix --get-all description (diff)
downloadtgif-0759dfdd9c888cbec92240ada3193b57862b2265.tar.xz
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 &&