Commits

Marcin Gardias committed 33181e3

BDEV-2150 -Mercurial doesn't work on windows.

Comments (0)

Files changed (1)

src/main/java/com/atlassian/utils/process/ExternalProcessImpl.java

      */
     private Process createWinProcess(List<String> command, Map<String, String> environment, File workingDir)
             throws IOException {
-        List<String> newCommand = new ArrayList<String>(command.size() + 3);
+        List<String> newCommand = new ArrayList<String>(command.size() + 4);
 
         if (runWithPowershell)
         {
             newCommand.add("cmd");
             newCommand.add("/A"); // use ANSI encoding
             newCommand.add("/C");
+            newCommand.add("call");
         }
 
         if (useWindowsEncodingWorkaround) {