summaryrefslogtreecommitdiff
path: root/lib/git/cmd.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-11-05 20:31:40 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-11-05 20:31:40 +0100
commitd9671e15703918048982c9ff4e2e0fef21ede320 (patch)
treed3e75e7ea7e41515e07585e571be8366723ef5b4 /lib/git/cmd.py
parent46c9a0df4403266a320059eaa66e7dce7b3d9ac4 (diff)
downloadgitpython-d9671e15703918048982c9ff4e2e0fef21ede320.tar.gz
fixed test_repo to work on windows
cmd: taskkill now pipes stderror to nul as well
Diffstat (limited to 'lib/git/cmd.py')
-rw-r--r--lib/git/cmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git/cmd.py b/lib/git/cmd.py
index 6d712ca9..bccfb611 100644
--- a/lib/git/cmd.py
+++ b/lib/git/cmd.py
@@ -71,7 +71,7 @@ class Git(object):
# for some reason, providing None for stdout/stderr still prints something. This is why
# we simply use the shell and redirect to nul. Its slower than CreateProcess, question
# is whether we really want to see all these messages. Its annoying no matter what.
- subprocess.call(("TASKKILL /F /T /PID %s > nul" % str(self.proc.pid)), shell=True)
+ subprocess.call(("TASKKILL /F /T /PID %s 2>nul 1>nul" % str(self.proc.pid)), shell=True)
# END exception handling
def __getattr__(self, attr):