aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-hooks2
1 files changed, 2 insertions, 0 deletions
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}
}