]> gitweb.fluxo.info Git - git-hooks.git/commitdiff
Fix icefox/git-hooks#9: -L arg to find must precede path to find from
authorSergey Belov <arikon@yandex-team.ru>
Mon, 13 Feb 2012 08:59:40 +0000 (10:59 +0200)
committerSergey Belov <arikon@yandex-team.ru>
Mon, 13 Feb 2012 08:59:40 +0000 (10:59 +0200)
git-hooks

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