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
fix: handle non utf8 files with autocrlf correctly #1909
Conversation
Can you add a unit test for this? |
@jcubic I tried, but I don't know how to create a new fixture with a binary file included. |
You can try to include files that contain |
@jcubic the problem is not the test case, I'm unable to create a new working fixture repository. If I include the |
I will check later today on how to create fixures. |
@jcubic I think I've found a way! |
051895b
to
74d45db
Compare
Are those hooks even used? It looks like sample code created by git init. Can you remove them? |
6c256ed
to
219c988
Compare
The tests are failing, it throws a wrong error.
|
@jcubic looks like a framework/devops issue. 2nd run was ok |
@jcubic Is anything else missing? |
I would add yet another test, to make sure that normal text files with \r that don't change also are not marked as modified. You can copy and paste the test and use a normal text file instead of a binary file. |
@jcubic done |
🎉 This PR is included in version 1.25.9 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fix #1908