summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--git_command.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/git_command.py b/git_command.py
index 6e285224..6cb6e0c3 100644
--- a/git_command.py
+++ b/git_command.py
@@ -352,6 +352,11 @@ class GitCommand(object):
352 p.stdin.write(input) 352 p.stdin.write(input)
353 p.stdin.close() 353 p.stdin.close()
354 354
355 try:
356 self.rc = self._CaptureOutput()
357 finally:
358 _remove_ssh_client(p)
359
355 @staticmethod 360 @staticmethod
356 def _GetBasicEnv(): 361 def _GetBasicEnv():
357 """Return a basic env for running git under. 362 """Return a basic env for running git under.
@@ -370,12 +375,7 @@ class GitCommand(object):
370 return env 375 return env
371 376
372 def Wait(self): 377 def Wait(self):
373 try: 378 return self.rc
374 p = self.process
375 rc = self._CaptureOutput()
376 finally:
377 _remove_ssh_client(p)
378 return rc
379 379
380 def _CaptureOutput(self): 380 def _CaptureOutput(self):
381 p = self.process 381 p = self.process