diff options
| author | Zaran <zaran.krleza@gmail.com> | 2011-09-21 00:40:17 +0200 |
|---|---|---|
| committer | Zaran <zaran.krleza@gmail.com> | 2011-09-21 00:40:17 +0200 |
| commit | 4264d6c6360c234d789df2ea513bb83022f41ab3 (patch) | |
| tree | 0495203ba2bfc8ae9d3133036e823c44ef4cfc58 /misc/post-receive | |
| parent | 688ba0108432bf6ea0b8bebfccc5bb2bbe285440 (diff) | |
| download | alias-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/post-receive')
| -rwxr-xr-x | misc/post-receive | 3 |
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" |
