From e6ccc324a0a36e2e5b8f27cc44ecf3e0175e1688 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 5 Mar 2016 14:56:58 +0200 Subject: [PATCH] main: ignore path from git remote URL It's much easier to use single keypair per user@host --- trezor_agent/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trezor_agent/__main__.py b/trezor_agent/__main__.py index 4564351..4df90de 100644 --- a/trezor_agent/__main__.py +++ b/trezor_agent/__main__.py @@ -91,8 +91,8 @@ def git_host(remote_name): raise ValueError('{:d} git remotes found: %s', matches) url = matches[0].strip() user, url = url.split('@', 1) - host, path = url.split(':', 1) - return 'ssh://{}@{}/{}'.format(user, host, path) + host, _ = url.split(':', 1) # skip unused path (1 key per user@host) + return 'ssh://{}@{}'.format(user, host) def ssh_sign(conn, label, blob):