diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-03 22:36:05 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-03 22:36:05 (GMT) |
commit | 02fc9f14f76f8fb767c4ef0e1dc59676d0678c20 (patch) | |
tree | f3fa221d46b9281f1843c0eb38fc83a7c00a7f1a /libexec/post-receive.d/01-mail-notify | |
parent | a143ae580de0cf62e2de3d584cf615a7983031f3 (diff) | |
download | site-02fc9f14f76f8fb767c4ef0e1dc59676d0678c20.tar.gz |
Add cgit URLs to commit notifications
Add links to our repository web interface to the commit notifications.
Diffstat (limited to 'libexec/post-receive.d/01-mail-notify')
-rwxr-xr-x | libexec/post-receive.d/01-mail-notify | 3 |
1 files changed, 2 insertions, 1 deletions
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 | |||
21 | recipient='nagiosplug-checkins@lists.sourceforge.net' | 21 | recipient='nagiosplug-checkins@lists.sourceforge.net' |
22 | maxcommits=25 | 22 | maxcommits=25 |
23 | maxdiffsize=$((300 * 1024)) | 23 | maxdiffsize=$((300 * 1024)) |
24 | gitweburl="FIXME" | 24 | gitweburl='https://www.nagios-plugins.org/repositories' |
25 | gitnotify='/home/plugins/libexec/git-notify' | 25 | gitnotify='/home/plugins/libexec/git-notify' |
26 | statedir="$prefix/info" | 26 | statedir="$prefix/info" |
27 | statefile="$statedir/git-notify.dat" | 27 | statefile="$statedir/git-notify.dat" |
@@ -33,6 +33,7 @@ exec "$gitnotify" \ | |||
33 | -n "$maxcommits" \ | 33 | -n "$maxcommits" \ |
34 | -s "$maxdiffsize" \ | 34 | -s "$maxdiffsize" \ |
35 | -t "$statefile" \ | 35 | -t "$statefile" \ |
36 | -u "$gitweburl" \ | ||
36 | -A \ | 37 | -A \ |
37 | -C \ | 38 | -C \ |
38 | -T \ | 39 | -T \ |