summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-11-25 18:35:46 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-11-25 18:35:46 -0800
commitccf1bb3ab65f968b412b17cfdd9613b1d7bc61b4 (patch)
treebfe4e20347194a060814e723b9c85fc4f8fb6c2f /t
parentMerge branch 'jk/maint-gitweb-xss' into maint (diff)
parentconfig: don't segfault when given --path with a missing value (diff)
downloadtgif-ccf1bb3ab65f968b412b17cfdd9613b1d7bc61b4.tar.xz
Merge branch 'cn/config-missing-path' into maint
* cn/config-missing-path: config: don't segfault when given --path with a missing value
Diffstat (limited to 't')
-rwxr-xr-xt/t1300-repo-config.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index e127f35db9..7c4c372e37 100755
--- a/t/t1300-repo-config.sh
+++ b/t/t1300-repo-config.sh
@@ -803,6 +803,11 @@ test_expect_success NOT_MINGW 'get --path copes with unset $HOME' '
test_cmp expect result
'
+test_expect_success 'get --path barfs on boolean variable' '
+ echo "[path]bool" >.git/config &&
+ test_must_fail git config --get --path path.bool
+'
+
cat > expect << EOF
[quote]
leading = " test"