Skip to content

Commit 2e820ba

Browse files
jrngitster
authored andcommitted
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 <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2179b67 commit 2e820ba

File tree

4 files changed

+0
-2
lines changed

4 files changed

+0
-2
lines changed

contrib/hooks/post-receive-email

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
# For example, on debian the hook is stored in
2323
# /usr/share/git-core/contrib/hooks/post-receive-email:
2424
#
25-
# chmod a+x post-receive-email
2625
# cd /path/to/your/repository.git
2726
# ln -sf /usr/share/git-core/contrib/hooks/post-receive-email hooks/post-receive
2827
#

contrib/hooks/pre-auto-gc-battery

100644100755
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# For example, if the hook is stored in
1414
# /usr/share/git-core/contrib/hooks/pre-auto-gc-battery:
1515
#
16-
# chmod a+x pre-auto-gc-battery
1716
# cd /path/to/your/repository.git
1817
# ln -sf /usr/share/git-core/contrib/hooks/pre-auto-gc-battery \
1918
# hooks/pre-auto-gc

contrib/hooks/setgitperms.perl

100644100755
File mode changed.

contrib/hooks/update-paranoid

100644100755
File mode changed.

0 commit comments

Comments
 (0)