From: Benjamin C Meyer Date: Wed, 25 Jan 2012 05:49:05 +0000 (-0500) Subject: When we find hooks also look for symbolic links. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a0dd1a48585246d3d7ee4be8342d3e3763578bdd;p=git-hooks.git When we find hooks also look for symbolic links. Signed-off-by: Benjamin C Meyer --- diff --git a/git-hooks b/git-hooks index 6137293..40dad0a 100755 --- 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