aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorZaran <zaran.krleza@gmail.com>2011-09-21 00:40:17 +0200
committerZaran <zaran.krleza@gmail.com>2011-09-21 00:40:17 +0200
commit4264d6c6360c234d789df2ea513bb83022f41ab3 (patch)
tree0495203ba2bfc8ae9d3133036e823c44ef4cfc58 /misc
parent688ba0108432bf6ea0b8bebfccc5bb2bbe285440 (diff)
downloadalias-4264d6c6360c234d789df2ea513bb83022f41ab3.tar.gz
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.
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/post-receive3
1 files changed, 2 insertions, 1 deletions
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"