From 4264d6c6360c234d789df2ea513bb83022f41ab3 Mon Sep 17 00:00:00 2001 From: Zaran Date: Wed, 21 Sep 2011 00:40:17 +0200 Subject: Fix a bug in post-recieve Values are passed to the hook's standard input and not to the commandline arguments. The Git doc is unclear on this subject. --- misc/post-receive | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/post-receive b/misc/post-receive index 04853c1..09ccf95 100755 --- a/misc/post-receive +++ b/misc/post-receive @@ -5,5 +5,6 @@ # irc notification # change the path of the python script -a=`git log --format=format:"%an | %s" $1..$2` +read oldrev newrev refname +a=`git log --format=format:"%an | %s" $oldrev..$newrev` python git-post-commit.py "irc.freenode.net" "AliasCommit" "#alias" "$a" -- cgit v1.2.3-70-g09d2