aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Belov <arikon@yandex-team.ru>2012-02-13 10:59:40 +0200
committerSergey Belov <arikon@yandex-team.ru>2012-02-13 10:59:40 +0200
commitf16902fca34a7ba5d352cdbc4adc31f426c418f8 (patch)
treef39f6922cb08903310e85cb3829c0e56501636c4
parentcf6762c598acc2f3c9b89ad09fb869353760e366 (diff)
downloadgit-hooks-f16902fca34a7ba5d352cdbc4adc31f426c418f8.tar.gz
git-hooks-f16902fca34a7ba5d352cdbc4adc31f426c418f8.tar.bz2
Fix icefox/git-hooks#9: -L arg to find must precede path to find from
-rwxr-xr-xgit-hooks2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks b/git-hooks
index fdb7d94..a0e2dc5 100755
--- 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