Skip to content

Commit 52cceaf

Browse files
git,cmd: add encoding arg to popen if universal newlines is True
1 parent 1bb4651 commit 52cceaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git/cmd.py

+1
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,7 @@ def execute(
12691269
stdout=stdout_sink,
12701270
shell=shell,
12711271
universal_newlines=universal_newlines,
1272+
encoding=defenc if universal_newlines else None,
12721273
**subprocess_kwargs,
12731274
)
12741275
except cmd_not_found_exception as err:

0 commit comments

Comments
 (0)