Make git rebase-update more responsive.

Passes through git-fetch's output instead of buffering it.

R=djacques@chromium.org
TBR=agable@chromium.org
BUG=366375

Review URL: https://codereview.chromium.org/264423002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@269080 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
iannucci@chromium.org
2014-05-08 19:22:47 +00:00
parent 5c7e5b3160
commit 43f4ecc65e
2 changed files with 13 additions and 13 deletions

View File

@@ -64,10 +64,8 @@ def fetch_remotes(branch_tree):
if not fetch_args: # pragma: no cover
print 'Nothing to fetch.'
else:
out, err = git.run_with_stderr('fetch', *fetch_args)
for data, stream in zip((out, err), (sys.stdout, sys.stderr)):
if data:
print >> stream, data
git.run_with_stderr('fetch', *fetch_args, stdout=sys.stdout,
stderr=sys.stderr)
def remove_empty_branches(branch_tree):