aboutsummaryrefslogtreecommitdiff
path: root/t/t7400-submodule-basic.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-09-04 12:36:51 -0700
committerJunio C Hamano <gitster@pobox.com>2013-09-04 12:36:51 -0700
commit5fb0e0868c25d4be66ead46992c393ed5f91c2d1 (patch)
tree2b382daeba5b2deb656bbb4fd4483f08e5d38206 /t/t7400-submodule-basic.sh
parentbaa8d42f0508f0854a83b068c7f6ca227b143d38 (diff)
parent4b05440283350ec3b01afabe847d9ce5cf4cbdb7 (diff)
downloadgit-5fb0e0868c25d4be66ead46992c393ed5f91c2d1.tar.gz
git-5fb0e0868c25d4be66ead46992c393ed5f91c2d1.tar.xz
Merge branch 'jl/some-submodule-config-are-not-boolean'
* jl/some-submodule-config-are-not-boolean: avoid segfault on submodule.*.path set to an empty "true"
Diffstat (limited to 't/t7400-submodule-basic.sh')
-rwxr-xr-xt/t7400-submodule-basic.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh
index 5ee97b003..a39d07446 100755
--- a/t/t7400-submodule-basic.sh
+++ b/t/t7400-submodule-basic.sh
@@ -18,6 +18,16 @@ test_expect_success 'setup - initial commit' '
git branch initial
'
+test_expect_success 'configuration parsing' '
+ test_when_finished "rm -f .gitmodules" &&
+ cat >.gitmodules <<-\EOF &&
+ [submodule "s"]
+ path
+ ignore
+ EOF
+ test_must_fail git status
+'
+
test_expect_success 'setup - repository in init subdirectory' '
mkdir init &&
(