Skip to content
Browse files

Merge "gerrit-clone now installs tracked git hooks"

  • Loading branch information...
2 parents 9b6cd69 + 43dcbc9 commit a8007dbd50632f7100484b80b492e2f4c07f68bd Vadim Spivak committed with Gerrit Code Review Aug 30, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 git/hooks-wrapper
View
8 git/hooks-wrapper
@@ -2,6 +2,8 @@
if [ -x $0.local ]; then
$0.local "$@" || exit $?
fi
-if [ -x tracked_hooks/$(basename $0) ]; then
- tracked_hooks/$(basename $0) "$@" || exit $?
-fi
+
+REPO_DIR=$(dirname $GIT_DIR)
+if [ -x $REPO_DIR/git/tracked_hooks/$(basename $0) ]; then
+ $REPO_DIR/git/tracked_hooks/$(basename $0) "$@" || exit $?
+fi

0 comments on commit a8007db

Please sign in to comment.
Something went wrong with that request. Please try again.