git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* hooks are ignored if there are not marked as executable
@ 2017-10-02 10:06 Damien
  2017-10-02 22:50 ` Jonathan Nieder
  0 siblings, 1 reply; 2+ messages in thread
From: Damien @ 2017-10-02 10:06 UTC (permalink / raw)
  To: git

Hi,

If you do `echo my_script > .git/hooks/pre-commit` and then `git commit`,
The hook is just gonna be ignored.
But if you do `chmod +x .git/hooks/pre-commit`, then it's executed.

I think ignoring a hook is misleading and not newbie friendly, an error
message to signal an incorrectly configured hook could be better.
At least as a warning to be backward-compatible.

Thanks,
Damien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-02 22:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-02 10:06 hooks are ignored if there are not marked as executable Damien
2017-10-02 22:50 ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).