]> gitweb.fluxo.info Git - git-hooks.git/commitdiff
When we find hooks also look for symbolic links.
authorBenjamin C Meyer <ben@meyerhome.net>
Wed, 25 Jan 2012 05:49:05 +0000 (00:49 -0500)
committerBenjamin C Meyer <ben@meyerhome.net>
Wed, 25 Jan 2012 05:49:37 +0000 (00:49 -0500)
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
git-hooks

index 61372933e80307fc98547a93ed691a40d90b7f80..40dad0a7beb456cefd51134fa70ca122dff2569c 100755 (executable)
--- a/git-hooks
+++ b/git-hooks
@@ -43,7 +43,7 @@ function hook_dirs
 
 function list_hooks_in_dir
 {
-    find "${1}/" -perm +111 -type f 2>/dev/null | grep -v "^.$" | sort
+    find "${1}/" -L -perm +111 -type f 2>/dev/null | grep -v "^.$" | sort
 }
 
 function run_hooks