Code

Change attribute negation marker from '!' to '-'.
[git.git] / t / t0020-crlf.sh
index 723b29ad17f778f9f9a96682dee1793191b88667..cf84f0a1ab5b392930f1d5a0008530399a6a00f6 100755 (executable)
@@ -214,4 +214,28 @@ test_expect_success 'apply patch --index (autocrlf=true)' '
        }
 '
 
+test_expect_success '.gitattributes says two is binary' '
+
+       echo "two -crlf" >.gitattributes &&
+       rm -f tmp one dir/two &&
+       git repo-config core.autocrlf true &&
+       git read-tree --reset -u HEAD &&
+
+       if remove_cr dir/two >/dev/null
+       then
+               echo "Huh?"
+               false
+       else
+               : happy
+       fi &&
+
+       if remove_cr one >/dev/null
+       then
+               : happy
+       else
+               echo "Huh?"
+               false
+       fi
+'
+
 test_done