Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ee861a commit 5593dc0Copy full SHA for 5593dc0
lib/git/cmd.py
@@ -63,7 +63,10 @@ def __del__(self):
63
os.kill(self.proc.pid, 2) # interrupt signal
64
except AttributeError:
65
# try windows
66
- subprocess.call(("TASKKILL", "/T", "/PID", self.proc.pid))
+ # for some reason, providing None for stdout/stderr still prints something. This is why
67
+ # we simply use the shell and redirect to nul. Its slower than CreateProcess, question
68
+ # is whether we really want to see all these messages. Its annoying no matter what.
69
+ subprocess.call(("TASKKILL /F /T /PID %s > nul" % str(self.proc.pid)), shell=True)
70
# END exception handling
71
72
def __getattr__(self, attr):
0 commit comments