py3: convert cwd to native string when running `fix`
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 12 Oct 2019 22:22:17 -0400
changeset 43193 2d1f9880af1b
parent 43192 ce20b870041f
child 43194 138ac8cbce60
py3: convert cwd to native string when running `fix` This prevents a bunch of failures on Windows. Differential Revision: https://phab.mercurial-scm.org/D7079
hgext/fix.py
--- a/hgext/fix.py	Fri Oct 11 18:56:59 2019 -0700
+++ b/hgext/fix.py	Sat Oct 12 22:22:17 2019 -0400
@@ -631,7 +631,7 @@
             proc = subprocess.Popen(
                 procutil.tonativestr(command),
                 shell=True,
-                cwd=repo.root,
+                cwd=procutil.tonativestr(repo.root),
                 stdin=subprocess.PIPE,
                 stdout=subprocess.PIPE,
                 stderr=subprocess.PIPE,