mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-15 16:48:24 -05:00
Now that we moved our Git repositories to SourceForge, we don't need to maintain local clones for generating commit notifications anymore, as SourceForge provides shell access to the repositories. Instead, we now run git-notify as a post-receive hook on the SourceForge server. Actually, we use a wrapper which executes git-notify with the desired options and which makes it easy to add other post-receive hooks in the future.
23 lines
503 B
Bash
Executable file
23 lines
503 B
Bash
Executable file
#!/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
|