One simple solution is:
- make sure core.autocrlf is set to false for all repos:
git config --global core.autocrlf false- Git 2.16 (Q1 2018) and above, run
git add --renormalize . - otherwise, re-clone your repo, and check no EOL conversion is done.
- Git 2.16 (Q1 2018) and above, run
If there are conversions automatically done, that mean a .gitattributes core.eol directive is there within the repo.
With Git 2.8+ (March 2016), check if there are still eol transformation with:
git ls-files --eol