git-post-receive-hook 535 B

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