Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

gerrit-clone now installs tracked git hooks

fixed bug in hooks-wrapper: assumed wrong CWD

Change-Id: Ibcf5f3db7b3933588254a2061ab43aa7869d09b4
  • Loading branch information...
commit 43dcbc9107b0f27bbe6226bb1d69f86f8321a150 1 parent 59c5315
Vadim Spivak authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 git/hooks-wrapper
8 git/hooks-wrapper
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.