#!/bin/sh # post-receive hook for notifications # arguments received # # 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"