summaryrefslogtreecommitdiffstats
path: root/debian/local/irkerhook-git
blob: 1f746e87638bd398d5164467a3a37cd1f02b8860 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

if [ -z "$(git config --get irker.project)" -a -z "$(git config --get irker.template)" ]
then
   echo "CONFIGURATION ERROR: Neither irker.project nor irker.template defined"
   echo "NOT sending IRC notification"
	exit 0
fi

echo "sending IRC notification"

while read old new refname
do
	irkerhook --refname=${refname} $(git rev-list --reverse ${old}..${new})
done