diff options
Diffstat (limited to 'lib/git/cmd.py')
-rw-r--r-- | lib/git/cmd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/cmd.py b/lib/git/cmd.py index 88d6008a..d674224c 100644 --- a/lib/git/cmd.py +++ b/lib/git/cmd.py @@ -190,7 +190,7 @@ class Git(object): status = 0 try: if output_stream is None: - stdout_value = proc.stdout.read() + stdout_value = proc.stdout.read().rstrip() # strip trailing "\n" else: max_chunk_size = 1024*64 while True: @@ -201,7 +201,7 @@ class Git(object): # END reading output stream stdout_value = output_stream # END stdout handling - stderr_value = proc.stderr.read() + stderr_value = proc.stderr.read().rstrip() # strip trailing "\n" # waiting here should do nothing as we have finished stream reading status = proc.wait() finally: |