bisect: limit the searchspace by pathspecs
[gitweb.git] / t / t3001-ls-files-others-exclude.sh
index 5beaaa33752daceb216ec7dec50727b9bd03682c..fde2bb25fa0fb41c09b4e4c87de8b9d1c0f9c237 100755 (executable)
@@ -67,4 +67,16 @@ test_expect_success \
        >output &&
      diff -u expect output'
 
+# Test \r\n (MSDOS-like systems)
+echo -ne '*.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 &&
+     diff -u expect output'
+
 test_done