Code

git-notify: Pipe e-mails directly to sendmail(8)
[nagiosplug.git] / tools / git-post-receive-hook
index 70d259e7bcc9fa0ec32de9394d7b1915afbfe9d5..db9ad9efa91bcb5e7117a9d134ea790fa3905639 100755 (executable)
@@ -4,11 +4,13 @@ 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" \
@@ -16,7 +18,6 @@ exec "$gitnotify" \
   -u "$gitweburl" \
   -A \
   -C \
-  -H \
   -S \
   -T \
   -X \