summaryrefslogtreecommitdiff
path: root/repo
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-03-28 09:39:09 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-03-28 09:39:09 -0400
commitc692257952b730cf45c81cf361f2b7a2686abede (patch)
tree9f1709e54e9572ca8a07004b40c5afb2c86f70ec /repo
parentafcaeaef5ef16033dbb1518436c3d5f1d356b177 (diff)
downloadgpsd-c692257952b730cf45c81cf361f2b7a2686abede.tar.gz
Eliminate a shell-ism.
Diffstat (limited to 'repo')
-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)