summaryrefslogtreecommitdiff
path: root/repo/hooks/ciabot.py
diff options
context:
space:
mode:
Diffstat (limited to 'repo/hooks/ciabot.py')
-rwxr-xr-xrepo/hooks/ciabot.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/repo/hooks/ciabot.py b/repo/hooks/ciabot.py
index 9667fa76..f8ee951e 100755
--- a/repo/hooks/ciabot.py
+++ b/repo/hooks/ciabot.py
@@ -106,12 +106,8 @@ generator="http://www.catb.org/~esr/ciabot.sh"
# Git version number.
gitver = do("git --version").split()[0]
-# Should add to the command path both places sendmail is likely to lurk,
-# and the git private command directory.
-os.environ["PATH"] += ":/usr/sbin/:" + do("git --exec-path")
-
-# Option flags
-mailit = True
+# Add the git private command directory to the command path.
+os.environ["PATH"] += ":" + do("git --exec-path")
urlprefix = urlprefix % globals()
@@ -170,6 +166,7 @@ Subject: DeliverXML
if __name__ == "__main__":
# Call this script with -n to dump the notification mail to stdout
+ mailit = True
if sys.argv[1] == '-n':
mailit = False
sys.argv.pop(1)