summaryrefslogtreecommitdiffstats
path: root/git/share/hooks/post-update.d/irker-notification
blob: 212cc6c5f8d7c1a4891303fcaf812c374bc8aa37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

if [ -z "$(git config --get irker.project)" ]
then
	exit 0
fi

echo "sending IRC notification"

while read OLD NEW REFNAME
do
	irkerhook --refname=${REFNAME} $(git rev-list --reverse ${OLD}..${NEW})
done