Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-11-20 22:40:46 +0400
committerJunio C Hamano <gitster@pobox.com>2012-11-20 22:40:46 +0400
commit0f76f976762d6a15a4af75db56208c8065492020 (patch)
treee77862b1d6d5f971b9bf9230117e066fd0618298 /t/t1300-repo-config.sh
parentb4f35513beb30ab2b1394440b8540627fe472a19 (diff)
parent962c38eedd931a608b5e675f12a21569d9f4d39f (diff)
Merge branch 'cn/config-missing-path'
"git config --path $key" segfaulted on "[section] key" (a boolean "true" spelled without "=", not "[section] key = true"). * cn/config-missing-path: config: don't segfault when given --path with a missing value
Diffstat (limited to 't/t1300-repo-config.sh')
-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"