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

Commitdf5c1cb

Browse files
committed
FIX regression by#519 on reading stdout/stderr of cmds
1 parentb3b9c02 commitdf5c1cb

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

‎.appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ environment:
3838
install:
3939
-set PATH=%PYTHON%;%PYTHON%\Scripts;%GIT_PATH%;%PATH%
4040

41-
## Printarchitecture, python & git used for debugging.
41+
## Printconfiguration for debugging.
4242
#
4343
-|
44+
echo %PATH%
4445
uname -a
4546
where git git-daemon python pip pip3 pip34
4647
python --version

‎git/cmd.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,8 @@ def execute(self, command,
539539
cmd_not_found_exception=OSError
540540
# end handle
541541

542-
log.debug("Popen(%s, cwd=%s, universal_newlines=%s",command,cwd,universal_newlines)
542+
log.debug("Popen(%s, cwd=%s, universal_newlines=%s, shell=%s)",
543+
command,cwd,universal_newlines,shell)
543544
try:
544545
proc=Popen(command,
545546
env=env,

‎git/repo/base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,8 +899,12 @@ def _clone(cls, git, url, path, odb_default_type, progress, **kwargs):
899899
try:
900900
proc=git.clone(url,path,with_extended_output=True,as_process=True,
901901
v=True,**add_progress(kwargs,git,progress))
902-
progress_handler=progressandprogress.new_message_handler()orNone
903-
handle_process_output(proc,None,progress_handler,finalize_process)
902+
ifprogress:
903+
handle_process_output(proc,None,progress.new_message_handler(),finalize_process)
904+
else:
905+
(stdout,stderr)=proc.communicate()# FIXME: Will block of outputs are big!
906+
finalize_process(proc,stderr=stderr)
907+
# end handle progress
904908
finally:
905909
ifprev_cwdisnotNone:
906910
os.chdir(prev_cwd)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp