From 33ecf08e87c4d11a8698c7735e7bd33880cf4381 Mon Sep 17 00:00:00 2001 From: Benjamin C Meyer Date: Sat, 19 Jun 2010 16:01:16 -0400 Subject: When listing hooks, the dir should always be a dir, so add / to the end of the dir. This allows the dir to be a symlink. Signed-off-by: Benjamin C Meyer --- git-hooks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-hooks b/git-hooks index bab2b5d..1921f36 100755 --- a/git-hooks +++ b/git-hooks @@ -40,7 +40,7 @@ function hook_dirs function list_hooks_in_dir { - find "${1}" -executable -type f 2>/dev/null | grep -v "^.$" | sort -V + find "${1}/" -executable -type f 2>/dev/null | grep -v "^.$" | sort -V } function run_hooks -- cgit v1.2.3