From 4283a547939c204787a35239ff31758cccf2674f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 02:50:22 +0200 Subject: Adding debian version 2.18+dfsg-3. Signed-off-by: Daniel Baumann --- debian/local/irkerhook-git | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 debian/local/irkerhook-git (limited to 'debian/local/irkerhook-git') diff --git a/debian/local/irkerhook-git b/debian/local/irkerhook-git new file mode 100755 index 0000000..1f746e8 --- /dev/null +++ b/debian/local/irkerhook-git @@ -0,0 +1,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 -- cgit v1.2.3