summaryrefslogtreecommitdiff
path: root/contrib/hooks/pre-auto-gc-battery
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2013-11-25 12:55:30 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-11-25 15:01:22 -0800
commit2e820ba9bc4f565a5cea5d3f055f6c4595734700 (patch)
tree21e3ad3c09f476d9fc98105e0882c6a47e7679d9 /contrib/hooks/pre-auto-gc-battery
parentmark perl test scripts executable (diff)
downloadtgif-2e820ba9bc4f565a5cea5d3f055f6c4595734700.tar.xz
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>
Diffstat (limited to 'contrib/hooks/pre-auto-gc-battery')
-rwxr-xr-x[-rw-r--r--]contrib/hooks/pre-auto-gc-battery1
1 files changed, 0 insertions, 1 deletions
diff --git a/contrib/hooks/pre-auto-gc-battery b/contrib/hooks/pre-auto-gc-battery
index 1f914c94aa..9d0c2d1990 100644..100755
--- a/contrib/hooks/pre-auto-gc-battery
+++ b/contrib/hooks/pre-auto-gc-battery
@@ -13,7 +13,6 @@
# 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