Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3d0e05c

Browse files
committed
Fixgit push hanging when stdout/stderr is big
Fixesgitpython-developersGH-145
1 parenta66cfe9 commit3d0e05c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎git/db/cmd/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,11 @@ def get_push_info(repo, remotename_or_url, proc, progress):
127127
# we hope stdout can hold all the data, it should ...
128128
# read the lines manually as it will use carriage returns between the messages
129129
# to override the previous one. This is why we read the bytes manually
130-
digest_process_messages(proc.stderr,progress)
130+
stdout,stderr=proc.communicate()
131+
digest_process_messages(StringIO(stderr),progress)
131132

132133
output=IterableList('name')
133-
forlineinproc.stdout.readlines():
134+
forlineinstdout.splitlines():
134135
try:
135136
output.append(CmdPushInfo._from_line(repo,remotename_or_url,line))
136137
exceptValueError:
@@ -139,7 +140,6 @@ def get_push_info(repo, remotename_or_url, proc, progress):
139140
# END exception handling
140141
# END for each line
141142

142-
finalize_process(proc)
143143
returnoutput
144144

145145

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp