From 02fc9f14f76f8fb767c4ef0e1dc59676d0678c20 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Fri, 4 Oct 2013 00:36:05 +0200 Subject: Add cgit URLs to commit notifications Add links to our repository web interface to the commit notifications. diff --git a/libexec/post-receive.d/01-mail-notify b/libexec/post-receive.d/01-mail-notify index d5e8b84..f3b4e77 100755 --- a/libexec/post-receive.d/01-mail-notify +++ b/libexec/post-receive.d/01-mail-notify @@ -21,7 +21,7 @@ prefix=$PWD # $GIT_DIR recipient='nagiosplug-checkins@lists.sourceforge.net' maxcommits=25 maxdiffsize=$((300 * 1024)) -gitweburl="FIXME" +gitweburl='https://www.nagios-plugins.org/repositories' gitnotify='/home/plugins/libexec/git-notify' statedir="$prefix/info" statefile="$statedir/git-notify.dat" @@ -33,6 +33,7 @@ exec "$gitnotify" \ -n "$maxcommits" \ -s "$maxdiffsize" \ -t "$statefile" \ + -u "$gitweburl" \ -A \ -C \ -T \ -- cgit v0.10-9-g596f