-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[REGRESSION] git-archive stores files with CRLF #2425
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
Comments
The "Minimal, Complete, and Verifiable example" is not verifiable, |
Never mind. I now see that this is the expected behavior, according to Sorry for the noise. |
It seems that the expected behavior is debatable ;-) commit f1265cc
|
The inconsistency was that tar had CRLF and zip had LF. I'll just suggest the colleague that complained about it to use |
Just for the record: Which zip file are you referring to? |
|
Setup
defaults?
to the issue you're seeing?
core.autocrlf=true
Details
Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
I expect it to have unconverted LF line-endings.
It depends on core.autocrlf. If core.autocrlf is true then the archive is stored with CRLF. Otherwise, it has only LF.
This breaks the use-case of deploying a tarball from a Windows machine to Linux which is sensitive to CRLF line endings.
It used to work correctly, but I'm not sure exactly on which version it broke. I can try to bisect if needed.
The text was updated successfully, but these errors were encountered: