mark contributed hooks executable
The docs in contrib/hooks/pre-auto-gc-battery suggest: For example, if the hook is stored in /usr/share/git-core/contrib/hooks/pre-auto-gc-battery: chmod a+x pre-auto-gc-battery cd /path/to/your/repository.git ln -sf /usr/share/git-core/contrib/hooks/pre-auto-gc-battery \ hooks/pre-auto-gc Unfortunately on multi-user systems most users do not have write access to /usr. Better to mark the sample hooks executable in the first place so users do not have to tweak their permissions to use them by symlinking into .git/hooks/. Reported-by: Olivier Berger <olivier.berger@it-sudparis.eu> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan Nieder committed
Nov 25, 2013 at 12:55 UTC
2e820ba9bc4f565a5cea5d3f055f6c4595734700
4 files changed
-2
contrib/hooks/post-receive-email
-1
@@ -22,7 +22,6 @@
22
# For example, on debian the hook is stored in
23
# /usr/share/git-core/contrib/hooks/post-receive-email:
24
#
25
-# chmod a+x post-receive-email
25
# cd /path/to/your/repository.git
26
# ln -sf /usr/share/git-core/contrib/hooks/post-receive-email hooks/post-receive
27
#
contrib/hooks/pre-auto-gc-battery
-1
@@ -13,7 +13,6 @@
13
# For example, if the hook is stored in
14
# /usr/share/git-core/contrib/hooks/pre-auto-gc-battery:
15
#
16
-# chmod a+x pre-auto-gc-battery
16
# cd /path/to/your/repository.git
17
# ln -sf /usr/share/git-core/contrib/hooks/pre-auto-gc-battery \
18
# hooks/pre-auto-gc