Use subprocess.Popen to call git executables
authorKarl Hasselström <kha@treskal.com>
Mon, 3 Sep 2007 21:48:45 +0000 (23:48 +0200)
committerCatalin Marinas <catalin.marinas@gmail.com>
Tue, 4 Sep 2007 21:00:08 +0000 (22:00 +0100)
commit9371394e3446236b55da8958b746ef0e0724fa9f
treeeb002b73de9fb2b6bc811834d647931dd36045ba
parenteda4068ff351143504a416393514b9fc57fb7fae
Use subprocess.Popen to call git executables

Replace popen2.Popen3 and os.spawn* with the superior
subprocess.Popen. Now we can pass a modified environment to any
subprocess, redirect input and output as we please, and the shell is
no longer involved, meaning we don't have to worry about argument
quoting. (We could already do all of that, just not at the same time.)

This is a Python 2.4 library, so StGit now officially requires Python
2.4 or later.

Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/run.py