Permalink
Browse files

When listing the hook_dirs use GITDIR for the project hooks

Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
  • Loading branch information...
1 parent 92eeee2 commit 0f8f2c371a56636428208348f3bce36d6a63a371 @icefox committed Jun 19, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 git-hooks
View
@@ -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}
}

0 comments on commit 0f8f2c3

Please sign in to comment.