reverted to the cleaner and safer proc.wait method instead of communicate.
authorFlorian Apolloner <florian@apolloner.eu>
Sat, 31 May 2008 22:03:04 +0000 (00:03 +0200)
committerFlorian Apolloner <florian@apolloner.eu>
Sat, 31 May 2008 22:03:04 +0000 (00:03 +0200)
lib/git/cmd.py

index 422552a7ce98b34ae4881905aea9f4a02fb859f3..80ef6a78023cd2b39f1ef93f5643347c448f0957 100644 (file)
@@ -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: