summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-12-17 21:29:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-12-17 21:37:14 (GMT)
commit1df27132493171294d0d2b53bd75bb8e131eea2b (patch)
treea7b1e438ffe10b2b4e40e7bdcef259916e76d695
parent53682f0c9e7545c6fa891896a5de4ad441a76147 (diff)
downloadgit-1df27132493171294d0d2b53bd75bb8e131eea2b.zip
git-1df27132493171294d0d2b53bd75bb8e131eea2b.tar.gz
git-1df27132493171294d0d2b53bd75bb8e131eea2b.tar.bz2
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>
-rw-r--r--Documentation/githooks.txt4
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