aboutsummaryrefslogtreecommitdiffstats
path: root/misc/post-receive
blob: 1041c895ec7eb8c1c733981c8768184881775bff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"