ssh: fix problems with backend and ssh clones.

This commit is contained in:
Marcin Kuzminski 2018-02-18 12:24:44 +01:00
parent 4b5baaabb1
commit b5b6c94fc2

View file

@ -71,12 +71,12 @@ class SubversionTunnelWrapper(object):
self.server.svn_path, '-t',
'--config-file', self.svn_conf_path,
'-r', root]
log.debug("Final CMD: %s", command)
log.debug("Final CMD: %s", ' '.join(command))
return command
def start(self):
command = self.command()
self.process = Popen(command, stdin=PIPE)
self.process = Popen(' '.join(command), stdin=PIPE, shell=True)
def sync(self):
while self.process.poll() is None:
@ -172,7 +172,6 @@ class SubversionTunnelWrapper(object):
first_response = self.get_first_client_response()
if not first_response:
self.fail("Repository name cannot be extracted")
return 1
url_parts = urlparse.urlparse(first_response['url'])
self.server.repo_name = url_parts.path.strip('/')