wolfSSL / wolfTPM

wolfTPM is a highly portable TPM 2.0 library, designed for embedded use.
https://www.wolfssl.com
GNU General Public License v2.0
230 stars 55 forks source link

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

Closed gojimmypi closed 1 month ago

gojimmypi commented 2 months ago

Similar to https://github.com/wolfSSL/wolfssl/issues/6779 and addressed in https://github.com/wolfSSL/wolfssl/pull/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.