Skip to content

Commit 83cd10a

Browse files
jnarebJunio C Hamano
authored andcommitted
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>
1 parent d7ebd53 commit 83cd10a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

t/t1300-repo-config.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,5 +424,25 @@ newline 123'
424424
test_expect_success 'value with newline' 'git repo-config key.sub value.with\\\
425425
newline'
426426

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+
427447
test_done
428448

0 commit comments

Comments
 (0)