git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Issuing warning when hook does not have execution permission

From
BMBabak M <babak@melon.com.au>
Date
Aug 19, 2014, 06:05 UTC
Message-ID
<CAPyMVO+a+R-+UDVuNSfhyB=PX-NUZbt6VGXfOv19-mDKTqfj6g@mail.gmail.com>
Hi,

I saw that if a hook file is present in .git/hooks and it does not have execution permissions it is silently ignored.

I thought it might be worthwhile issuing a warning such as "Warning: pre-commit hook exists but it cannot be executed due to insufficient permissions".

Not sure if this has been discussed before. I searched the archive but didn't see anything.

Thoughts, suggestions? Is there anything like that already?

Cheers, Babak

Next: Jeff King
Message 1 of 6 in “Issuing warning when hook does not have execution permission”
  1. Babak MAug 19, 2014
  2. Jeff KingAug 19, 2014
  3. Junio C HamanoAug 19, 2014
  4. Chris PackhamAug 20, 2014
  5. Jeff KingAug 20, 2014
  6. Junio C HamanoAug 20, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.