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).
Interim solution is to simply delete the zero-length .git/hooks/pre-commit file.
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:
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).Interim solution is to simply delete the zero-length
.git/hooks/pre-commit
file.