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

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