Skip to content

Commit

Permalink
When listing the hook_dirs use GITDIR for the project hooks
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
  • Loading branch information
icefox committed Jun 19, 2010
1 parent 92eeee2 commit 0f8f2c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git-hooks
Expand Up @@ -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}
}
Expand Down

0 comments on commit 0f8f2c3

Please sign in to comment.