From: Miklos Vajna Date: Wed, 17 Dec 2008 21:29:06 GMT Subject: [PATCH] githooks documentation: add a note about the +x mode 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 --- On Wed, Dec 17, 2008 at 08:55:45PM +0100, Markus Heidelberg 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