Skip to content
Snippets Groups Projects
Commit 8bec2450 authored by Boris Feld's avatar Boris Feld
Browse files

use quote pipe on argument

parent 4a55c120
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
import stat import stat
import sys import sys
import tempfile import tempfile
import pipes
from .utils import (BaseNChangesetsTestSuite, BaseTestSuite, from .utils import (BaseNChangesetsTestSuite, BaseTestSuite,
median, REPOS_DIR) median, REPOS_DIR)
...@@ -226,7 +227,7 @@ ...@@ -226,7 +227,7 @@
def run(self, local_repo, command, remote_repo, expected_return_code=None): def run(self, local_repo, command, remote_repo, expected_return_code=None):
if not isinstance(command, (list, tuple)): if not isinstance(command, (list, tuple)):
command = [command] command = [command]
cmd = ['--cwd', local_repo] + command cmd = ['--cwd', pipes.quote(local_repo)] + command
cmd.extend(self._remote_path_cmd(remote_repo)) cmd.extend(self._remote_path_cmd(remote_repo))
if self.rev: if self.rev:
cmd.extend(['-r', self.rev]) cmd.extend(['-r', self.rev])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment