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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | prefix="${0%/*}/notifications" # $GIT_DIR/hooks/notifications | ||
4 | recipient='Nagios Plugin Commits <nagiosplug-checkins@lists.sourceforge.net>' | ||
5 | maxcommits=100 | ||
6 | maxdiffsize=$((300 * 1024)) | ||
7 | gitweburl='http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug' | ||
8 | gitnotify="$prefix/git-notify.pl" | ||
9 | statefile="$prefix/git-notify.dat" | ||
10 | |||
11 | exec "$gitnotify" \ | ||
12 | -m "$recipient" \ | ||
13 | -n "$maxcommits" \ | ||
14 | -s "$maxdiffsize" \ | ||
15 | -t "$statefile" \ | ||
16 | -u "$gitweburl" \ | ||
17 | -A \ | ||
18 | -C \ | ||
19 | -H \ | ||
20 | -S \ | ||
21 | -T \ | ||
22 | -X \ | ||
23 | -z | ||