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

use quote pipe on argument

parent 4a55c1205a09
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@
import stat
import sys
import tempfile
import pipes
from .utils import (BaseNChangesetsTestSuite, BaseTestSuite,
median, REPOS_DIR)
......@@ -226,7 +227,7 @@
def run(self, local_repo, command, remote_repo, expected_return_code=None):
if not isinstance(command, (list, tuple)):
command = [command]
cmd = ['--cwd', local_repo] + command
cmd = ['--cwd', pipes.quote(local_repo)] + command
cmd.extend(self._remote_path_cmd(remote_repo))
if 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