summaryrefslogtreecommitdiffstats
path: root/libexec/post-receive.d/01-mail-notify
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-10-04 22:08:36 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-10-04 22:08:36 (GMT)
commit45d3e695be499cf9f9956c223883073fc20d48b4 (patch)
tree1d5c600bfa21d223773f7026a3dd8e1146a90762 /libexec/post-receive.d/01-mail-notify
parentde5c705b7a7922a67a7524dc63581506546fe9c1 (diff)
downloadsite-45d3e695be499cf9f9956c223883073fc20d48b4.tar.gz
Set PATH for all individual Git hook snippets
... just to be on the safe side.
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" \