aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/githooks.txt
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-12-17 22:29:06 +0100
committerJunio C Hamano <gitster@pobox.com>2008-12-17 13:37:14 -0800
commit1df27132493171294d0d2b53bd75bb8e131eea2b (patch)
treea7b1e438ffe10b2b4e40e7bdcef259916e76d695 /Documentation/githooks.txt
parent53682f0c9e7545c6fa891896a5de4ad441a76147 (diff)
downloadgit-1df27132493171294d0d2b53bd75bb8e131eea2b.tar.gz
githooks documentation: add a note about the +x mode
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/githooks.txt')
-rw-r--r--Documentation/githooks.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt
index 5faaaa5fed..cfdae1efa2 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