aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin C Meyer <ben@meyerhome.net>2010-06-19 16:01:16 -0400
committerBenjamin C Meyer <ben@meyerhome.net>2010-06-19 16:01:32 -0400
commit33ecf08e87c4d11a8698c7735e7bd33880cf4381 (patch)
tree128596b4e3592d1dea65fba3424c88a4b61f3bbc
parent0f7c343908bece283b7e4a7fa03f161f73466f72 (diff)
downloadgit-hooks-33ecf08e87c4d11a8698c7735e7bd33880cf4381.tar.gz
git-hooks-33ecf08e87c4d11a8698c7735e7bd33880cf4381.tar.bz2
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 <ben@meyerhome.net>
-rwxr-xr-xgit-hooks2
1 files changed, 1 insertions, 1 deletions
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