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

Commitb3d9b8d

Browse files
Dmitry NikulinByron
Dmitry Nikulin
authored andcommitted
Fix TypeError in git.execute(..., output_stream=file)
Thisfixesgitpython-developers#619 - raise GitCommandError(not TypeError) when output_stream is setin git.execute
1 parente1d2f4b commitb3d9b8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ def _kill_process(pid):
794794
else:
795795
max_chunk_size=max_chunk_sizeifmax_chunk_sizeandmax_chunk_size>0elseio.DEFAULT_BUFFER_SIZE
796796
stream_copy(proc.stdout,output_stream,max_chunk_size)
797-
stdout_value=output_stream
797+
stdout_value=proc.stdout.read()
798798
stderr_value=proc.stderr.read()
799799
# strip trailing "\n"
800800
ifstderr_value.endswith(b"\n"):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp