Check that .gitattributes is in the repository.
And that line endings are normalised.