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

Windows/WSL Problem with .git/hooks/pre-commit zero-length file #346

Closed
gojimmypi opened this issue Apr 30, 2024 · 0 comments
Closed

Windows/WSL Problem with .git/hooks/pre-commit zero-length file #346

gojimmypi opened this issue Apr 30, 2024 · 0 comments
Assignees

Comments

@gojimmypi
Copy link
Contributor

Similar to wolfSSL/wolfssl#6779 and addressed in wolfSSL/wolfssl#6798, this repo has a similar problem for Windows users when attempting to commit changes in a fork:

image

The less-than-intuitive error message is due to the zero-byte-length pre-commit file that is created by autogen.sh and the poor method in which Visual Studio handles it (as an error, rather than just ignoring it).

image

Interim solution is to simply delete the zero-length .git/hooks/pre-commit file.

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

2 participants