aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin C Meyer <ben@meyerhome.net>2011-09-01 10:50:02 -0400
committerBenjamin C Meyer <ben@meyerhome.net>2011-09-01 10:50:35 -0400
commit792aae9b51a8c9e65a3d760f0bf6c155fd507edf (patch)
tree7f71fa30ae080cc28c4525bceaa5843abe411907
parent101a3b637c1208b5b4c681d53dd0c0a7121c0aaf (diff)
downloadgit-hooks-792aae9b51a8c9e65a3d760f0bf6c155fd507edf.tar.gz
git-hooks-792aae9b51a8c9e65a3d760f0bf6c155fd507edf.tar.bz2
Include the directory .hooks inside the repository as one of the directories that are searched.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
-rwxr-xr-xgit-hooks1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-hooks b/git-hooks
index 6f08899..3cce242 100755
--- a/git-hooks
+++ b/git-hooks
@@ -37,6 +37,7 @@ function hook_dirs
GITDIR=`git rev-parse --git-dir`
cd $GITDIR/..
echo "${PWD}/git_hooks${hook}"
+ echo "${PWD}/.hooks${hook}"
eval echo "`git config hooks.global`"${hook}
}