[Xfce4-commits] <xfce-git-hooks:master> I'm stupid. post-receive needs to read its arguments from stdin.

Jannis Pohlmann jannis at xfce.org
Wed Sep 16 18:52:01 CEST 2009


Updating branch refs/heads/master
         to 989de310aa466211135e7b145f0a9ca6c5b08a68 (commit)
       from ade395ed8e11b58eeb4c9b79664b87dd3cc5b00e (commit)

commit 989de310aa466211135e7b145f0a9ca6c5b08a68
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Wed Sep 16 18:49:45 2009 +0200

    I'm stupid. post-receive needs to read its arguments from stdin.

 post-receive |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/post-receive b/post-receive
index 2fea319..97104b1 100755
--- a/post-receive
+++ b/post-receive
@@ -2,4 +2,7 @@
 
 XFCE_GIT_HOOK_DIR="/usr/local/share/xfce-git-hooks"
 
-$XFCE_GIT_HOOK_DIR/hooks/post-receive-01-buildbot $@
+while read oldrev newrev refname; do
+  $XFCE_GIT_HOOK_DIR/hooks/post-receive-01-buildbot \
+    "$oldrev" "$newrev" "$refname"
+done



More information about the Xfce4-commits mailing list