mark contributed hooks executable
commit2e820ba9bc4f565a5cea5d3f055f6c4595734700
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 25 Nov 2013 20:55:30 +0000 (25 12:55 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Nov 2013 23:01:22 +0000 (25 15:01 -0800)
tree21e3ad3c09f476d9fc98105e0882c6a47e7679d9
parent2179b6727efb5493f9871f8903883d6359486208
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>
contrib/hooks/post-receive-email
contrib/hooks/pre-auto-gc-battery [changed mode: 0644->0755]
contrib/hooks/setgitperms.perl [changed mode: 0644->0755]
contrib/hooks/update-paranoid [changed mode: 0644->0755]