t/t1300-repo-config.sh: value continued on next line
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>
Jakub Narebski committed
Jan 23, 2007 at 13:37 UTC
83cd10a05688e6429f9e65cffbe90683e9487800
1 file changed
+20
t/t1300-repo-config.sh
+20
@@ -424,5 +424,25 @@ newline 123'
424
test_expect_success 'value with newline' 'git repo-config key.sub value.with\\\
425
newline'
426
427
+cat > .git/config <<\EOF
428
+[section]
429
+ ; comment \
430
+ continued = cont\
431
+inued
432
+ noncont = not continued ; \
433
+ quotecont = "cont;\
434
+inued"
435
+EOF
436
+
437
+cat > expect <<\EOF
438
+section.continued=continued
439
+section.noncont=not continued
440
+section.quotecont=cont;inued
441
+EOF
442
+
443
+git repo-config --list > result
444
+
445
+test_expect_success 'value continued on next line' 'cmp result expect'
446
+
447
test_done
448