-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure the sh scripts all have only LFs (not CRLFs) #32
Comments
OK, since |
No, 09fca6a did nothing about |
Still nothing... :-/ This is nuts. Git is so gross... Reading https://stackoverflow.com/questions/2517190/how-do-i-force-git-to-use-lf-instead-of-crlf-under-windows/2517442 And https://stackoverflow.com/questions/35801024/how-to-see-what-type-of-line-endings-are-already-in-git-repository, to check what's in the repo in the first place! |
Wow, those idiotic "backwards" warnings about the impending LF->CRLF conversions DESPITE and AFTER setting autocrlf to false and specifically declaring the .sh files as eol=LF in It seems that
|
And https://git-scm.com/docs/gitattributes... It clearly says:
|
OK, fukit, I gave in, and just set lf the default (-> also e.g. https://stackoverflow.com/a/42136008/1479945):
With the exceptions:
This seems to work now, finally. |
(Originally: xparq/Args#33)
The
.gitattributes
settings supposedly already ensure that it's that way in the repo.However, I still had
core.autocrlf
enabled locally, and either because of that or it was just never changed, (some of?) the scripts still had CRLF (in the work tree at least).I recently
dos2unix
ed them all, and also did agit add --renormalize
(which didn't change anything then, but suppressed Git's really inexplicable "...will change to CRLF" warning); let's see what happens next time I check something out and feed it e.g. to WSL's bash...The text was updated successfully, but these errors were encountered: