threads / patch / 8125

patchgit-config: test for 'do not forget "a.b.var" already ends "a.var" section'.

Subject: [PATCH] git-config: test for 'do not forget "a.b.var" already ends "a.var" section'.

## tl;dr

One message between May 13, 2007 and May 13, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Steffen Prohaska· May 13, 2007, 07:12 UTC · lore
Added test for mentioned bugfix.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
---
 t/t1300-repo-config.sh |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
Show changes to t/t1300-repo-config.sh +16 −0
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index 78c2e08..91d572c 100755
--- a/t/t1300-repo-config.sh
+++ b/t/t1300-repo-config.sh
@@ -407,6 +407,22 @@ EOF
 test_expect_success "section was removed properly" \
 	"git diff -u expect .git/config"
 
+rm .git/config
+
+git-config gitcvs.enabled true
+git-config gitcvs.ext.dbname %Ggitcvs1.%a.%m.sqlite
+git-config gitcvs.dbname %Ggitcvs2.%a.%m.sqlite
+
+cat > expect << EOF
+[gitcvs]
+	enabled = true
+	dbname = %Ggitcvs2.%a.%m.sqlite
+[gitcvs "ext"]
+	dbname = %Ggitcvs1.%a.%m.sqlite
+EOF
+
+test_expect_success 'section ending' 'cmp .git/config expect'
+
 test_expect_success numbers '
 
 	git-config kilo.gram 1k &&
-- 
1.5.1.2

← back to recent threads