]> gitweb.fluxo.info Git - git-hooks.git/commitdiff
When listing hooks, the dir should always be a dir, so add / to the end of the dir...
authorBenjamin C Meyer <ben@meyerhome.net>
Sat, 19 Jun 2010 20:01:16 +0000 (16:01 -0400)
committerBenjamin C Meyer <ben@meyerhome.net>
Sat, 19 Jun 2010 20:01:32 +0000 (16:01 -0400)
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
git-hooks

index bab2b5d787c47e24ac7e237c63e05dd17ba514f4..1921f36ba79f4ff3758d250b15d29840f030ebe0 100755 (executable)
--- 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