summaryrefslogtreecommitdiff
path: root/t/t1300-repo-config.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-04-03 10:29:26 -0700
committerJunio C Hamano <gitster@pobox.com>2016-04-03 10:29:26 -0700
commitc832cef8aa541cce6e2a53a4e1e466bfe8323531 (patch)
tree862607c5e50a1b1ea9ea542ccb86c9fd8e431465 /t/t1300-repo-config.sh
parent2052c52d9a16fe1d9a091dd0b53ab1806a663999 (diff)
parent24990b2febec5e00ecc8c7c57614b7431b86f7a5 (diff)
downloadgit-c832cef8aa541cce6e2a53a4e1e466bfe8323531.tar.gz
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/t1300-repo-config.sh')
-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 &&