fetch tests: add a test for clobbering tag behavior
[gitweb.git] / t / t0020-crlf.sh
index 71350e0657986d7b3e38801d82058c53f9fd23d0..5f056982a53b62810192fc8bbb5dbb6d784fb1a2 100755 (executable)
@@ -98,6 +98,16 @@ test_expect_success 'safecrlf: git diff demotes safecrlf=true to warn' '
 '
 
 
+test_expect_success 'safecrlf: no warning with safecrlf=false' '
+       git config core.autocrlf input &&
+       git config core.safecrlf false &&
+
+       for w in I am all CRLF; do echo $w; done | append_cr >allcrlf &&
+       git add allcrlf 2>err &&
+       test_must_be_empty err
+'
+
+
 test_expect_success 'switch off autocrlf, safecrlf, reset HEAD' '
        git config core.autocrlf false &&
        git config core.safecrlf false &&