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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy