mercurial/hook.py
changeset 38491 72286f9e324f
parent 38484 e9e61fbac787
child 38628 539f9708b980
--- a/mercurial/hook.py	Sat Jun 16 23:26:40 2018 +0900
+++ b/mercurial/hook.py	Thu Jun 28 22:23:08 2018 -0400
@@ -139,9 +139,7 @@
             v = stringutil.pprint(v)
         env['HG_' + k.upper()] = v
 
-    if pycompat.iswindows:
-        environ = procutil.shellenviron(env)
-        cmd = util.platform.shelltocmdexe(cmd, environ)
+    cmd = procutil.shelltonative(cmd, env)
 
     ui.note(_("running hook %s: %s\n") % (name, cmd))