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

[PATCH] githooks documentation: add a note about the +x mode

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Dec 17, 2008, 21:29 UTC
Message-ID
<1229549346-17863-1-git-send-email-vmiklos@frugalware.org>
In-Reply-To
<200812172055.45905.markus.heidelberg@web.de>

In a freshly initialized repo it is only necessary to rename the .sample hooks, but when using older repos (initialized with older git init) enabled the +x mode is still necessary - docuement this.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
---
On Wed, Dec 17, 2008 at 08:55:45PM +0100, Markus Heidelberg <markus.heidelberg@web.de> wrote:
> When you want to learn how to use hooks, you will probably rather read
> githooks(5), where the need for the executable bit is not even
> explicitly mentioned. Maybe it should be added there?
I think so.
 Documentation/githooks.txt |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt
index 5faaaa5..cfdae1e 100644
--- a/Documentation/githooks.txt
+++ b/Documentation/githooks.txt
@@ -20,6 +20,10 @@ directory to trigger action at certain points.  When
 all disabled.  To enable a hook, rename it by removing its `.sample`
 suffix.
 
+NOTE: It is also a requirement for a given hook to be executable.
+However - in a freshly initialized repository - the `.sample` files are
+executable by default.
+
 This document describes the currently defined hooks.
 
 applypatch-msg
-- 
1.6.1.rc1.35.gae26e.dirty
Previous: Markus Heidelberg
Message 6 of 6 in “Documentation: fix description for enabling hooks”
  1. Documentation: fix description for enabling hooksMarkus Heidelberg, Dec 17, 2008
  2. Miklos VajnaDec 17, 2008
  3. Johannes SixtDec 17, 2008
  4. Miklos VajnaDec 17, 2008
  5. Markus HeidelbergDec 17, 2008
  6. githooks documentation: add a note about the +x modeMiklos Vajna, Dec 17, 2008

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.