Skip to content

Commit 1df2713

Browse files
Miklos Vajnagitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 53682f0 commit 1df2713

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/githooks.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ directory to trigger action at certain points. When
2020
all disabled. To enable a hook, rename it by removing its `.sample`
2121
suffix.
2222

23+
NOTE: It is also a requirement for a given hook to be executable.
24+
However - in a freshly initialized repository - the `.sample` files are
25+
executable by default.
26+
2327
This document describes the currently defined hooks.
2428

2529
applypatch-msg

0 commit comments

Comments
 (0)