Submitter | phabricator |
---|---|
Date | Dec. 1, 2020, 6:18 a.m. |
Message ID | <differential-rev-PHID-DREV-7gb5rf3tddib75pzvq5y-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/47749/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/utils/procutil.py b/mercurial/utils/procutil.py --- a/mercurial/utils/procutil.py +++ b/mercurial/utils/procutil.py @@ -654,9 +654,13 @@ stdin.write(stdin_bytes) stdin.flush() stdin.seek(0) + if shell: + script = tonativestr(script) + else: + script = [tonativestr(s) for s in script] p = subprocess.Popen( - tonativestr(script), + script, shell=shell, env=tonativeenv(env), close_fds=True,