diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2009-12-06 00:23:41 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2009-12-06 00:23:41 (GMT) |
commit | 78fc8f4909750407585990aa10522d9510a69804 (patch) | |
tree | d57a0901bd1e5122bcde353a935c6e80b9530d69 /tools/git-post-receive-hook | |
parent | 96a23a4c117a9c2665ca09e5964eacf028dbcdcf (diff) | |
download | monitoring-plugins-78fc8f4909750407585990aa10522d9510a69804.tar.gz |
Enable CIA's commit notifications
We now use CIA's service to send commit notifications to IRC. They are
currently sent to the #Nagios-Devel channel on Freenode. See:
http://cia.vc/stats/project/nagiosplug/
http://cia.vc/account/bots/15699/
Diffstat (limited to 'tools/git-post-receive-hook')
-rwxr-xr-x | tools/git-post-receive-hook | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/git-post-receive-hook b/tools/git-post-receive-hook index 70d259e..fd1f869 100755 --- a/tools/git-post-receive-hook +++ b/tools/git-post-receive-hook | |||
@@ -4,11 +4,13 @@ prefix="${0%/*}/notifications" # $GIT_DIR/hooks/notifications | |||
4 | recipient='Nagios Plugin Commits <nagiosplug-checkins@lists.sourceforge.net>' | 4 | recipient='Nagios Plugin Commits <nagiosplug-checkins@lists.sourceforge.net>' |
5 | maxcommits=100 | 5 | maxcommits=100 |
6 | maxdiffsize=$((300 * 1024)) | 6 | maxdiffsize=$((300 * 1024)) |
7 | project='nagiosplug' | ||
7 | gitweburl='http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug' | 8 | gitweburl='http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug' |
8 | gitnotify="$prefix/git-notify.pl" | 9 | gitnotify="$prefix/git-notify.pl" |
9 | statefile="$prefix/git-notify.dat" | 10 | statefile="$prefix/git-notify.dat" |
10 | 11 | ||
11 | exec "$gitnotify" \ | 12 | exec "$gitnotify" \ |
13 | -c "$project" \ | ||
12 | -m "$recipient" \ | 14 | -m "$recipient" \ |
13 | -n "$maxcommits" \ | 15 | -n "$maxcommits" \ |
14 | -s "$maxdiffsize" \ | 16 | -s "$maxdiffsize" \ |