On 2024-10-08 18:59, Marc wrote:
I'm on Windows using Cygwin to build LibreOffice. When I "make", the files in .git/hooks/commit-msg post-merge pre-commit READMEare overwritten with 0 byte files. This causes "git commit" (using SourceTree) to fail: "Commit: cannot spawn .git/hooks/pre-commit: No such file or directory." Launching cygwin.bat as admin doesn't help.Any ideas how I can fix this?
`.git-hooks/README` mentions a potential issue when using Git for Windows (instead of cygwin git) and suggests a potential solution.
In case that doesn't help, removing the symlinks and copying the hooks from `.git-hooks/` to `.git/hooks` might possibly help to work around the problem at least.
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature