aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin C Meyer <ben@meyerhome.net>2012-01-25 00:49:05 -0500
committerBenjamin C Meyer <ben@meyerhome.net>2012-01-25 00:49:37 -0500
commita0dd1a48585246d3d7ee4be8342d3e3763578bdd (patch)
tree83c0c0df7ca17a01454b51b86a92fcb977e49d1d
parentc353359930fbf255861ca7295d606364e1f6bc91 (diff)
downloadgit-hooks-a0dd1a48585246d3d7ee4be8342d3e3763578bdd.tar.gz
git-hooks-a0dd1a48585246d3d7ee4be8342d3e3763578bdd.tar.bz2
When we find hooks also look for symbolic links.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
-rwxr-xr-xgit-hooks2
1 files changed, 1 insertions, 1 deletions
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