Skip to content
Snippets Groups Projects
Commit d1546c67 authored by Sean Farley's avatar Sean Farley
Browse files

ssh: fix breakage with dulwich update

dulwich 0.11.x changed the way they pass parameters around, so we reformat that
to what hg-git expects.
parent 93d58b79
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,11 @@
class _Vendor(SSHVendor):
def run_command(self, host, command, username=None, port=None):
# newer dulwich changes the way they pass command and parameters
# around, so we detect that here and reformat it back to what
# hg-git expects (e.g. "command 'arg1 arg2'")
if len(command) > 1:
command = ["%s '%s'" % (command[0], ' '.join(command[1:]))]
sshcmd = ui.config("ui", "ssh", "ssh")
args = util.sshargs(sshcmd, host, username, port)
cmd = '%s %s %s' % (sshcmd, args,
......
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