aboutsummaryrefslogtreecommitdiffstats
path: root/misc/post-receive
blob: 09ccf954fe7b8bb38a86d6a4a2ad40680fcd0f35 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# post-receive hook for notifications
# arguments received
# <oldrev> <newrev> <refname>

# irc notification
# change the path of the python script
read oldrev newrev refname
a=`git log --format=format:"%an | %s" $oldrev..$newrev`
python git-post-commit.py "irc.freenode.net" "AliasCommit" "#alias" "$a"