]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t0030-stripspace.sh
rebase -i: highlight problems with core.commentchar
[thirdparty/git.git] / t / t0030-stripspace.sh
index 29e91d861cbd6473d80c7343a0e292b010d83173..c1f6411eb2d8d04585faf6d9289bd50d7c5f52cf 100755 (executable)
@@ -432,6 +432,15 @@ test_expect_success '-c with changed comment char' '
        test_cmp expect actual
 '
 
+test_expect_failure '-c with comment char defined in .git/config' '
+       test_config core.commentchar = &&
+       printf "= foo\n" >expect &&
+       printf "foo" | (
+               mkdir sub && cd sub && git stripspace -c
+       ) >actual &&
+       test_cmp expect actual
+'
+
 test_expect_success 'avoid SP-HT sequence in commented line' '
        printf "#\tone\n#\n# two\n" >expect &&
        printf "\tone\n\ntwo\n" | git stripspace -c >actual &&