summaryrefslogtreecommitdiffstats
path: root/tools/git-post-receive-hook
blob: db9ad9efa91bcb5e7117a9d134ea790fa3905639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

prefix="${0%/*}/notifications"	# $GIT_DIR/hooks/notifications
recipient='Nagios Plugin Commits <nagiosplug-checkins@lists.sourceforge.net>'
maxcommits=100
maxdiffsize=$((300 * 1024))
project='nagiosplug'
gitweburl='http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug'
gitnotify="$prefix/git-notify.pl"
statefile="$prefix/git-notify.dat"

exec "$gitnotify" \
  -c "$project" \
  -m "$recipient" \
  -n "$maxcommits" \
  -s "$maxdiffsize" \
  -t "$statefile" \
  -u "$gitweburl" \
  -A \
  -C \
  -S \
  -T \
  -X \
  -z