* [PATCH] git-config: test for 'do not forget "a.b.var" already ends "a.var" section'.
@ 2007-05-13 7:12 Steffen Prohaska
0 siblings, 0 replies; only message in thread
From: Steffen Prohaska @ 2007-05-13 7:12 UTC (permalink / raw)
To: git; +Cc: Steffen Prohaska
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(-)
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-13 7:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-13 7:12 [PATCH] git-config: test for 'do not forget "a.b.var" already ends "a.var" section' Steffen Prohaska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).