From 0ef792ac1e127dcf919e77908035faf63616352b Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Tue, 26 May 2020 23:33:15 -0500 Subject: [PATCH] Tests ~ (fix) always check out test fixtures with known LF line endings - fixes windows test failures - avoids `git` platform-dependent conversion of line endings for checkout of test fixtures (*tests/examples/...*) --- tests/.gitattributes | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/.gitattributes b/tests/.gitattributes index 2cab29b4..ed47e9f2 100644 --- a/tests/.gitattributes +++ b/tests/.gitattributes @@ -1,3 +1,11 @@ +# force LF EOLs for test fixtures +examples/** text=auto eol=lf +snapshots/** text=auto eol=lf + +# BAT/CMD files always need CRLF EOLs +*.[Bb][Aa][Tt] text eol=crlf +*.[Cc][Mm][Dd] text eol=crlf + examples/* linguist-vendored snapshots/* linguist-vendored benchmarks/* linguist-vendored