Re: make in Cygwin stomps files in .git/hooks/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux