diff options
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 d9ef967..8e3ce59 100755 --- a/libexec/post-receive.d/01-mail-notify +++ b/libexec/post-receive.d/01-mail-notify | |||
@@ -15,7 +15,7 @@ | |||
15 | set -e | 15 | set -e |
16 | set -u | 16 | set -u |
17 | 17 | ||
18 | test "${PWD##*/}" = 'site.git' && exit 0 # Don't report site.git updates. | 18 | export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' |
19 | 19 | ||
20 | prefix=$PWD # $GIT_DIR | 20 | prefix=$PWD # $GIT_DIR |
21 | recipient='nagiosplug-checkins@lists.sourceforge.net' | 21 | recipient='nagiosplug-checkins@lists.sourceforge.net' |
@@ -26,6 +26,7 @@ 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" |
28 | 28 | ||
29 | test "${PWD##*/}" != 'site.git' || exit 0 # Don't report site.git updates. | ||
29 | test -n "$recipient" || exit 0 | 30 | test -n "$recipient" || exit 0 |
30 | 31 | ||
31 | exec "$gitnotify" \ | 32 | exec "$gitnotify" \ |