Commits

David Golub committed 8a4d0fc

qtlib: fix handling of UNC paths (fixes #1798)

The Windows shell cannot set the current working directory to a UNC path.
Therefore, shell should be set to false when the repository is on a UNC path.

  • Participants
  • Parent commits 181088c
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/qtlib.py

         return
 
     cmdline = util.quotecommand(cmdline)
+    shell = not (len(cwd) >= 2 and cwd[0:2] == r'\\')
     try:
-        subprocess.Popen(cmdline, shell=True, creationflags=openflags,
+        subprocess.Popen(cmdline, shell=shell, creationflags=openflags,
                          stderr=None, stdout=None, stdin=None, cwd=cwd)
     except (OSError, EnvironmentError), e:
         QMessageBox.warning(parent,