Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Setup .gitattributes for eol normalization #429
This will work automatically for future commits.
For existing files, we have to manually normalize
find . \( -path './.git' -o -path './build*' -o \ -path './src_gen' \) -prune -o -type f -print |\ xargs dos2unix
One caveat of dos2unix is, even though it claims
Therefore, after running the above command, make
@headius: in your commit which removed the .gitattributes file, you mentioned that
Could you please let me know which files are problematic?
Anyway, I think the problem should be gone because now I've normalized all existing problematic files (should have done this with my initial commit). With this supplemental modification, I've successfully applied the same change to a dozen of intranet projects and everything is alright.
Also, as for JRuby, I've adjusted the .gitattributes file accordingly to work with a few JRuby specific files.
With this new commit the problems mentioned in your previous commit should be gone. Hopefully you can give it a try and let me know the result.