Skip to content
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

tests fail on windows after git clone with autocrlf=true #526

Open
peakschris opened this issue Jun 29, 2024 · 0 comments
Open

tests fail on windows after git clone with autocrlf=true #526

peakschris opened this issue Jun 29, 2024 · 0 comments

Comments

@peakschris
Copy link

After git clone of this repo with autocrlf=true on windows, 31 tests fail. These are diff tests that are comparing files output by tooling that always generates LF, with repo files that are sometimes CRLF and sometimes LF.

I believe the solution is for all windows users to clone with autocrlf=input, or to check in a .gitattributes file so everyone gets LF files:

.gitattributes:

# The behavior of core.autocrlf=input is to force conversion to LF on addition
# into the repository and not to perform any conversion on checkout; that is,
# to always use LF endings regardless of the user's settings. This is set in 
# .gitattributes as '* eol=lf'
* eol=lf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant