From 0f8f2c371a56636428208348f3bce36d6a63a371 Mon Sep 17 00:00:00 2001 From: Benjamin C Meyer Date: Sat, 19 Jun 2010 16:17:03 -0400 Subject: When listing the hook_dirs use GITDIR for the project hooks Signed-off-by: Benjamin C Meyer --- git-hooks | 2 ++ 1 file changed, 2 insertions(+) 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} } -- cgit v1.2.3