From 2e820ba9bc4f565a5cea5d3f055f6c4595734700 Mon Sep 17 00:00:00 2001 From: Jonathan Nieder Date: Mon, 25 Nov 2013 12:55:30 -0800 Subject: 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 Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- contrib/hooks/setgitperms.perl | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 contrib/hooks/setgitperms.perl (limited to 'contrib/hooks/setgitperms.perl') diff --git a/contrib/hooks/setgitperms.perl b/contrib/hooks/setgitperms.perl old mode 100644 new mode 100755 -- cgit v1.2.3