summaryrefslogtreecommitdiff
path: root/t/t1300-repo-config.sh
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2007-01-23 12:37:25 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-01-24 01:35:48 (GMT)
commit83cd10a05688e6429f9e65cffbe90683e9487800 (patch)
tree4bb92992410cecd117a5595e7643b1423f5a8b62 /t/t1300-repo-config.sh
parentd7ebd53d371153f7a61c0fe9f384c9662b751bf6 (diff)
downloadgit-83cd10a05688e6429f9e65cffbe90683e9487800.zip
git-83cd10a05688e6429f9e65cffbe90683e9487800.tar.gz
git-83cd10a05688e6429f9e65cffbe90683e9487800.tar.bz2
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>
Diffstat (limited to 't/t1300-repo-config.sh')
-rwxr-xr-xt/t1300-repo-config.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index eb7455b..0e4f32d 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