summaryrefslogtreecommitdiff
path: root/t/t1300-repo-config.sh
diff options
context:
space:
mode:
authorSteffen Prohaska <prohaska@zib.de>2007-05-13 07:12:52 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-05-13 07:24:46 (GMT)
commitb18a2be37a0de27902ad6491960ed910083b0310 (patch)
tree242ed5f8541977c7b9077c8daa593630562557d1 /t/t1300-repo-config.sh
parentae9ee41de86cc98adad1a0c70651c55acc3fb699 (diff)
downloadgit-b18a2be37a0de27902ad6491960ed910083b0310.zip
git-b18a2be37a0de27902ad6491960ed910083b0310.tar.gz
git-b18a2be37a0de27902ad6491960ed910083b0310.tar.bz2
git-config: test for 'do not forget "a.b.var" ends "a.var" section'.
Added test for mentioned bugfix. Signed-off-by: Steffen Prohaska <prohaska@zib.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t1300-repo-config.sh')
-rwxr-xr-xt/t1300-repo-config.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index 78c2e08..a1d777c 100755
--- a/t/t1300-repo-config.sh
+++ b/t/t1300-repo-config.sh
@@ -407,6 +407,25 @@ EOF
test_expect_success "section was removed properly" \
"git diff -u expect .git/config"
+rm .git/config
+
+cat > expect << EOF
+[gitcvs]
+ enabled = true
+ dbname = %Ggitcvs2.%a.%m.sqlite
+[gitcvs "ext"]
+ dbname = %Ggitcvs1.%a.%m.sqlite
+EOF
+
+test_expect_success 'section ending' '
+
+ git-config gitcvs.enabled true &&
+ git-config gitcvs.ext.dbname %Ggitcvs1.%a.%m.sqlite &&
+ git-config gitcvs.dbname %Ggitcvs2.%a.%m.sqlite &&
+ cmp .git/config expect
+
+'
+
test_expect_success numbers '
git-config kilo.gram 1k &&