From 45d3e695be499cf9f9956c223883073fc20d48b4 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sat, 5 Oct 2013 00:08:36 +0200 Subject: Set PATH for all individual Git hook snippets ... just to be on the safe side. --- libexec/post-receive.d/01-mail-notify | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libexec/post-receive.d/01-mail-notify') 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 @@ set -e set -u -test "${PWD##*/}" = 'site.git' && exit 0 # Don't report site.git updates. +export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' prefix=$PWD # $GIT_DIR recipient='nagiosplug-checkins@lists.sourceforge.net' @@ -26,6 +26,7 @@ gitnotify='/home/plugins/libexec/git-notify' statedir="$prefix/info" statefile="$statedir/git-notify.dat" +test "${PWD##*/}" != 'site.git' || exit 0 # Don't report site.git updates. test -n "$recipient" || exit 0 exec "$gitnotify" \ -- cgit v1.2.3-74-g34f1