]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t0030-stripspace.sh
config: allow multi-byte core.commentChar
[thirdparty/git.git] / t / t0030-stripspace.sh
index e399dd918960e1b6c01baa06d8a795ba53f97d6c..a161faf702945e323a3e242ac62b71633b0f1836 100755 (executable)
@@ -403,7 +403,12 @@ test_expect_success 'strip comments with changed comment char' '
 
 test_expect_success 'newline as commentchar is forbidden' '
        test_must_fail git -c core.commentChar="$LF" stripspace -s 2>err &&
-       grep "core.commentChar cannot be newline" err
+       grep "core.commentChar cannot contain newline" err
+'
+
+test_expect_success 'empty commentchar is forbidden' '
+       test_must_fail git -c core.commentchar= stripspace -s 2>err &&
+       grep "core.commentChar must have at least one character" err
 '
 
 test_expect_success '-c with single line' '