diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-11-25 18:35:46 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-11-25 18:35:46 -0800 |
commit | ccf1bb3ab65f968b412b17cfdd9613b1d7bc61b4 (patch) | |
tree | bfe4e20347194a060814e723b9c85fc4f8fb6c2f /t | |
parent | Merge branch 'jk/maint-gitweb-xss' into maint (diff) | |
parent | config: don't segfault when given --path with a missing value (diff) | |
download | tgif-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-x | t/t1300-repo-config.sh | 5 |
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" |