diff --git a/.gitattributes b/.gitattributes index 4dc0456..7ae3d52 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,12 @@ # Bash scripts must stay LF — CRLF breaks the shebang on Linux/macOS/WSL. bash/** text eol=lf +# The bats suites are bash too, and they live outside bash/ — without this a +# Windows checkout gets CRLF and `bats tests/bash` fails there (including when +# run through WSL against the Windows working copy). +tests/bash/** text eol=lf +*.bats text eol=lf + # PowerShell/cmd are happiest with CRLF on Windows. *.ps1 text eol=crlf *.cmd text eol=crlf