Browse Source

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>
maint
Steffen Prohaska 18 years ago committed by Junio C Hamano
parent
commit
b18a2be37a
  1. 19
      t/t1300-repo-config.sh

19
t/t1300-repo-config.sh

@ -407,6 +407,25 @@ EOF @@ -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 &&

Loading…
Cancel
Save