From c692257952b730cf45c81cf361f2b7a2686abede Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 28 Mar 2010 09:39:09 -0400 Subject: Eliminate a shell-ism. --- repo/hooks/ciabot.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'repo') 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) -- cgit v1.2.1