Commits

TK Soh  committed 4c1aae1

hgproc: path return by paths dialog need to be shell quoted for spaces

  • Participants
  • Parent commits 21ca136

Comments (0)

Files changed (1)

         path = hggtk.paths.run(root=option['root'], pull=True)
         if path:
             import hggtk.cmd
-            return hggtk.cmd.run(cmdline + ' ' + path)
+            return hggtk.cmd.run(cmdline + ' ' + thgutil.shellquote(path))
     elif option['hgcmd'] in ['outgoing', 'push']:
         import hggtk.paths
         path = hggtk.paths.run(root=option['root'], pull=False)
         if path:
             import hggtk.cmd
-            return hggtk.cmd.run(cmdline + ' ' + path)
+            return hggtk.cmd.run(cmdline + ' ' + thgutil.shellquote(path))
     else:
         import hggtk.cmd
         return hggtk.cmd.run(cmdline)