make in Cygwin stomps files in .git/hooks/

Michael Weghorn m.weghorn at posteo.de
Tue Oct 8 22:53:21 UTC 2024


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  README
> are 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20241008/d4a13357/attachment.sig>


More information about the LibreOffice mailing list