git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] t/t1300-repo-config.sh: value continued on next line
@ 2007-01-23 12:37 Jakub Narebski
  0 siblings, 0 replies; only message in thread
From: Jakub Narebski @ 2007-01-23 12:37 UTC (permalink / raw)
  To: git; +Cc: Jakub Narebski

Documentation/config.txt:
  Variable value ending in a '`\`' is continued on the next line in the
  customary UNIX fashion.

Test it.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
 t/t1300-repo-config.sh |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index eb7455b..5210aa2 100755
--- a/t/t1300-repo-config.sh
+++ b/t/t1300-repo-config.sh
@@ -424,5 +424,25 @@ newline 123'
 test_expect_success 'value with newline' 'git repo-config key.sub value.with\\\
 newline'
 
+cat > .git/config << EOF
+[section]
+	; comment \\
+	continued = cont\\
+inued
+	noncont   = not continued ; \\
+	quotecont = "cont;\\
+inued"
+EOF
+
+cat > expect <<EOF
+section.continued=continued
+section.noncont=not continued
+section.quotecont=cont;inued
+EOF
+
+git repo-config --list > result
+
+test_expect_success 'value continued on next line' 'cmp result expect'
+
 test_done
 
-- 
1.4.4.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-23 12:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-23 12:37 [PATCH] t/t1300-repo-config.sh: value continued on next line Jakub Narebski

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).