@matheusbsbs / matheus-bagliano / commits / b18a2be37a
Fork 0

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>

Steffen Prohaska committed May 13, 2007 at 09:12 UTC b18a2be37a0de27902ad6491960ed910083b0310
1 file changed +19
t/t1300-repo-config.sh
+19
@@ -407,6 +407,25 @@ EOF
407 test_expect_success "section was removed properly" \
408 "git diff -u expect .git/config"
409
410 +rm .git/config
411 +
412 +cat > expect << EOF
413 +[gitcvs]
414 + enabled = true
415 + dbname = %Ggitcvs2.%a.%m.sqlite
416 +[gitcvs "ext"]
417 + dbname = %Ggitcvs1.%a.%m.sqlite
418 +EOF
419 +
420 +test_expect_success 'section ending' '
421 +
422 + git-config gitcvs.enabled true &&
423 + git-config gitcvs.ext.dbname %Ggitcvs1.%a.%m.sqlite &&
424 + git-config gitcvs.dbname %Ggitcvs2.%a.%m.sqlite &&
425 + cmp .git/config expect
426 +
427 +'
428 +
429 test_expect_success numbers '
430
431 git-config kilo.gram 1k &&