diff options
author | Florian Apolloner <florian@apolloner.eu> | 2008-06-01 00:03:04 +0200 |
---|---|---|
committer | Florian Apolloner <florian@apolloner.eu> | 2008-06-01 00:03:04 +0200 |
commit | d2c1bd80350f692c5c2298cb88859564ec0a061b (patch) | |
tree | be962f19320c901bb332609778e39a3681b66936 /lib/git/cmd.py | |
parent | 039bfe373c990fc6db3808d255abaff91235e82f (diff) | |
download | gitpython-d2c1bd80350f692c5c2298cb88859564ec0a061b.tar.gz |
reverted to the cleaner and safer proc.wait method instead of communicate.
Diffstat (limited to 'lib/git/cmd.py')
-rw-r--r-- | lib/git/cmd.py | 5 |
1 files changed, 2 insertions, 3 deletions
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: |