X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=t%2Ft3001-ls-files-others-exclude.sh;h=fde2bb25fa0fb41c09b4e4c87de8b9d1c0f9c237;hb=cfac3f3fa7267c8c06372875f3b05311f0fe4346;hp=dbff346c0a45b2342d543802f57322b76f850cb4;hpb=f10e0e0b18c8e2e69535e7380fb3c1f9b097cfda;p=git.git diff --git a/t/t3001-ls-files-others-exclude.sh b/t/t3001-ls-files-others-exclude.sh index dbff346c..fde2bb25 100755 --- a/t/t3001-ls-files-others-exclude.sh +++ b/t/t3001-ls-files-others-exclude.sh @@ -66,3 +66,17 @@ test_expect_success \ --exclude-from=.git/ignore \ >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