FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix `git push` hanging when stdout/stderr is big by msabramo · Pull Request #184 · gitpython-developers/GitPython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 3 additions & 3 deletions git/db/cmd/base.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ def get_push_info(repo, remotename_or_url, proc, progress):
# we hope stdout can hold all the data, it should ...
# read the lines manually as it will use carriage returns between the messages
# to override the previous one. This is why we read the bytes manually
digest_process_messages(proc.stderr, progress)
stdout, stderr = proc.communicate()
digest_process_messages(StringIO(stderr), progress)

output = IterableList('name')
for line in proc.stdout.readlines():
for line in stdout.splitlines():
try:
output.append(CmdPushInfo._from_line(repo, remotename_or_url, line))
except ValueError:
Expand All @@ -139,7 +140,6 @@ def get_push_info(repo, remotename_or_url, proc, progress):
# END exception handling
# END for each line

finalize_process(proc)
return output


Expand Down

Back | FazBrowse Home | New Git URL