echo "*.txt text eol=lf" >> .gitattributes …
This forces Windows checkouts to keep LF line endings for test files. https://help.github.com/articles/dealing-with-line-endings/#example resolves #429