Bisect: teach "bisect start" to optionally use one bad and many good revs.
[gitweb.git] / t / t3001-ls-files-others-exclude.sh
index dbff346c0a45b2342d543802f57322b76f850cb4..db7a847a5dd13ece7a4ec22d795b8407631d7d4c 100755 (executable)
@@ -65,4 +65,18 @@ test_expect_success \
        --exclude-per-directory=.gitignore \
        --exclude-from=.git/ignore \
        >output &&
-     diff -u expect output'
+     git diff expect output'
+
+# Test \r\n (MSDOS-like systems)
+printf '*.1\r\n/*.3\r\n!*.6\r\n' >.gitignore
+
+test_expect_success \
+    'git-ls-files --others with \r\n line endings.' \
+    'git-ls-files --others \
+       --exclude=\*.6 \
+       --exclude-per-directory=.gitignore \
+       --exclude-from=.git/ignore \
+       >output &&
+     git diff expect output'
+
+test_done