diff options
Diffstat (limited to 'misc/post-receive')
| -rwxr-xr-x | misc/post-receive | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/misc/post-receive b/misc/post-receive new file mode 100755 index 0000000..1041c89 --- /dev/null +++ b/misc/post-receive @@ -0,0 +1,16 @@ +#!/bin/sh +# post-receive hook for notifications +# arguments received +# <oldrev> <newrev> <refname> + +# irc notification +# change the path of the python scripts +{ + while read oldrev newrev refname + do + a=`git log --format=format:"%an | %s" $oldrev..$newrev` + printf "$oldrev $newrev $refname\n" | python trac-update.py + printf "$a\n" + done +} | python git-post-commit.py "irc.freenode.net" "AliasCommit" "#alias" + |
