mirror of
https://github.com/git/git.git
synced 2025-03-23 08:16:34 +00:00
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>
This commit is contained in:
parent
d7ebd53d37
commit
83cd10a056
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user