Skip to content

Commit

Permalink
git-config: test for 'do not forget "a.b.var" ends "a.var" section'.
Browse files Browse the repository at this point in the history
Added test for mentioned bugfix.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Steffen Prohaska authored and Junio C Hamano committed May 13, 2007
1 parent ae9ee41 commit b18a2be
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions t/t1300-repo-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit b18a2be

Please sign in to comment.