git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] t/t1300-repo-config.sh: value continued on next line

From
Jakub Narebski <jnareb@gmail.com>
Date
Jan 23, 2007, 12:37 UTC
Message-ID
<11695558453053-git-send-email-jnareb@gmail.com>
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
Message 1 of 1 in “t/t1300-repo-config.sh: value continued on next line”
  1. t/t1300-repo-config.sh: value continued on next lineJakub Narebski, Jan 23, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.