X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=t%2Ft3001-ls-files-others-exclude.sh;h=6979b7c1c05001d08ce94f9034580f94745b4924;hb=51937e533a39078a6d440b8a0b89bb491061c80b;hp=dbff346c0a45b2342d543802f57322b76f850cb4;hpb=2b64f88f09ae2169ec85652b46897574e352936d;p=git.git diff --git a/t/t3001-ls-files-others-exclude.sh b/t/t3001-ls-files-others-exclude.sh index dbff346c..6979b7c1 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) +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 && + diff -u expect output' + +test_done