From: Benjamin C Meyer Date: Sat, 19 Jun 2010 20:17:03 +0000 (-0400) Subject: When listing the hook_dirs use GITDIR for the project hooks X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0f8f2c371a56636428208348f3bce36d6a63a371;p=git-hooks.git When listing the hook_dirs use GITDIR for the project hooks Signed-off-by: Benjamin C Meyer --- diff --git a/git-hooks b/git-hooks index 171a916..0acc6e3 100755 --- a/git-hooks +++ b/git-hooks @@ -34,6 +34,8 @@ function hook_dirs hook="" fi echo "${HOME}/.git_hooks${hook}" + GITDIR=`git rev-parse --git-dir` + cd $GITDIR/.. echo "${PWD}/git_hooks${hook}" eval echo "`git config hooks.global`"${hook} }