Closed ForNeVeR closed 1 year ago
An example of how things got messed up you can see in PR https://github.com/ForNeVeR/wpf-math/pull/329: as you can see, .ttf
and .png
files become several bytes lesser, perhaps because a stray \r\n
was found by Git somewhere there.
Without this change, files get weirdly mangled on checking them out,
git rebase
and whatnot.Initially, I got this version of
.gitattributes
from this comment on GitHubcheckout
Action repository.Why have I even introduced this? Because I've decided we want to keep the line endings as
\n
(otherwise, they themselves get occasionally messed up by myself and other contributors). And then I found that GitHub Actions check out the repository withautocrlf=true
on Windows. To avoid that, I wanted to do an equivalent ofcore.autocrlf=input
, and took the advice from the aforementioned comment.I was wrong, and I hope the problem gets fixed by this.