]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1300-repo-config.sh
config: Fix --unset for continuation lines
[thirdparty/git.git] / t / t1300-repo-config.sh
index 42eac2a7cb0c8404b09a669c9526606eb89ab80e..44dcc1f94f581660bcf04c75281d60466c95b0be 100755 (executable)
@@ -71,6 +71,25 @@ EOF
 
 test_expect_success 'non-match result' 'cmp .git/config expect'
 
+cat > .git/config <<\EOF
+[alpha]
+bar = foo
+[beta]
+baz = multiple \
+lines
+EOF
+
+test_expect_success 'unset with cont. lines' \
+       'git config --unset beta.baz'
+
+cat > expect <<\EOF
+[alpha]
+bar = foo
+[beta]
+EOF
+
+test_expect_success 'unset with cont. lines is correct' 'cmp .git/config expect'
+
 cat > .git/config << EOF
 [beta] ; silly comment # another comment
 noIndent= sillyValue ; 'nother silly comment