t/t1300-repo-config.sh: value continued on next line
authorJakub Narebski <jnareb@gmail.com>
Tue, 23 Jan 2007 12:37:25 +0000 (13:37 +0100)
committerJunio C Hamano <junkio@cox.net>
Wed, 24 Jan 2007 01:35:48 +0000 (17:35 -0800)
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>
Signed-off-by: Junio C Hamano <junkio@cox.net>
t/t1300-repo-config.sh

index eb7455ba21030252d5e988e2d184d16d63a7ea67..0e4f32d5c9df518ded062085420ccdecf016488c 100755 (executable)
@@ -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