From d2c1bd80350f692c5c2298cb88859564ec0a061b Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Sun, 1 Jun 2008 00:03:04 +0200 Subject: reverted to the cleaner and safer proc.wait method instead of communicate. --- lib/git/cmd.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/git/cmd.py') diff --git a/lib/git/cmd.py b/lib/git/cmd.py index 422552a7..80ef6a78 100644 --- a/lib/git/cmd.py +++ b/lib/git/cmd.py @@ -103,10 +103,9 @@ class Git(MethodMissingMixin): ) # Wait for the process to return - stdout_value, err = proc.communicate() + status = proc.wait() + stdout_value = proc.stdout.read() proc.stdout.close() - if proc.stderr: - proc.stderr.close() # Strip off trailing whitespace by default if not with_raw_output: -- cgit v1.2.1