From: Steffen Prohaska Date: Sun, 13 May 2007 07:12:52 +0000 (+0200) Subject: git-config: test for 'do not forget "a.b.var" ends "a.var" section'. X-Git-Tag: v1.5.1.5~22 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b18a2be37a0de27902ad6491960ed910083b0310;p=git.git git-config: test for 'do not forget "a.b.var" ends "a.var" section'. Added test for mentioned bugfix. Signed-off-by: Steffen Prohaska Signed-off-by: Junio C Hamano --- diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh index 78c2e0864..a1d777ca8 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 &&