summaryrefslogtreecommitdiffstats
path: root/libexec/post-receive.d/01-mail-notify
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/post-receive.d/01-mail-notify')
-rwxr-xr-xlibexec/post-receive.d/01-mail-notify3
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 d9ef967..8e3ce59 100755
--- a/libexec/post-receive.d/01-mail-notify
+++ b/libexec/post-receive.d/01-mail-notify
@@ -15,7 +15,7 @@
15set -e 15set -e
16set -u 16set -u
17 17
18test "${PWD##*/}" = 'site.git' && exit 0 # Don't report site.git updates. 18export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin'
19 19
20prefix=$PWD # $GIT_DIR 20prefix=$PWD # $GIT_DIR
21recipient='nagiosplug-checkins@lists.sourceforge.net' 21recipient='nagiosplug-checkins@lists.sourceforge.net'
@@ -26,6 +26,7 @@ gitnotify='/home/plugins/libexec/git-notify'
26statedir="$prefix/info" 26statedir="$prefix/info"
27statefile="$statedir/git-notify.dat" 27statefile="$statedir/git-notify.dat"
28 28
29test "${PWD##*/}" != 'site.git' || exit 0 # Don't report site.git updates.
29test -n "$recipient" || exit 0 30test -n "$recipient" || exit 0
30 31
31exec "$gitnotify" \ 32exec "$gitnotify" \