diff --git a/trezor_agent/__main__.py b/trezor_agent/__main__.py index ce1b89e..31ad406 100644 --- a/trezor_agent/__main__.py +++ b/trezor_agent/__main__.py @@ -64,6 +64,7 @@ def setup_logging(verbosity): def git_host(remote_name): + """Extract git SSH host for specified remote name.""" output = subprocess.check_output('git config --local --list'.split()) pattern = r'remote\.{}\.url=(.*)'.format(remote_name) matches = re.findall(pattern, output) @@ -75,6 +76,7 @@ def git_host(remote_name): host, path = url.split(':', 1) return 'ssh://{}@{}/{}'.format(user, host, path) + def ssh_sign(conn, label, blob): """Perform SSH signature using given hardware device connection.""" now = time.strftime('%Y-%m-%d %H:%M:%S')