[X2Go-Commits] [maintenancescripts] 01/01: git/hooks/update{, -merge}: correctly invoke irkerhook, part 3.

git-admin at x2go.org git-admin at x2go.org
Thu Mar 26 11:55:07 CET 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository maintenancescripts.

commit ac89ba27d2174b0f9e717692205e8ea0594d6029
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Thu Mar 26 11:54:48 2015 +0100

    git/hooks/update{,-merge}: correctly invoke irkerhook, part 3.
---
 git/hooks/update       |    6 +++++-
 git/hooks/update-merge |    6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/git/hooks/update b/git/hooks/update
index 87ab55c..bf4a51c 100755
--- a/git/hooks/update
+++ b/git/hooks/update
@@ -5,8 +5,12 @@
 
 . "hooks/common.sh"
 
+REFNAME="${1}"
+OLD="${2}"
+NEW="${3}"
+
 . "${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/update-script._check_"
 #. "${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/update-script._branches+tags_"
 #. "${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/update-script._acl_"
-"${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/update-script._irkerhook.py_"
+"${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/update-script._irkerhook.py_" --refname=${REFNAME} $(git rev-list --reverse ${OLD}..${NEW})
 . "${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/update-script._grant_"
diff --git a/git/hooks/update-merge b/git/hooks/update-merge
index f11facb..f637101 100755
--- a/git/hooks/update-merge
+++ b/git/hooks/update-merge
@@ -5,8 +5,12 @@
 
 . "hooks/common.sh"
 
+REFNAME="${1}"
+OLD="${2}"
+NEW="${3}"
+
 . "${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/update-script._check+allow-merges_"
 #. "${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/update-script._branches+tags_"
 #. "${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/update-script._acl_"
-"${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/update-script._irkerhook.py_"
+"${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/update-script._irkerhook.py_" --refname=${REFNAME} $(git rev-list --reverse ${OLD}..${NEW})
 . "${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/update-script._grant_"

--
Alioth's /srv/git/code.x2go.org/maintenancescripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git


More information about the x2go-commits mailing list