diff options
Diffstat (limited to 'tools/git-post-receive-hook')
-rwxr-xr-x | tools/git-post-receive-hook | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/git-post-receive-hook b/tools/git-post-receive-hook new file mode 100755 index 00000000..70d259e7 --- /dev/null +++ b/tools/git-post-receive-hook @@ -0,0 +1,23 @@ +#!/bin/sh + +prefix="${0%/*}/notifications" # $GIT_DIR/hooks/notifications +recipient='Nagios Plugin Commits <nagiosplug-checkins@lists.sourceforge.net>' +maxcommits=100 +maxdiffsize=$((300 * 1024)) +gitweburl='http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug' +gitnotify="$prefix/git-notify.pl" +statefile="$prefix/git-notify.dat" + +exec "$gitnotify" \ + -m "$recipient" \ + -n "$maxcommits" \ + -s "$maxdiffsize" \ + -t "$statefile" \ + -u "$gitweburl" \ + -A \ + -C \ + -H \ + -S \ + -T \ + -X \ + -z |