workaround gist clone in --prefer-ssh mode

This commit is contained in:
Vladislav Yarmak
2019-09-21 19:22:27 +03:00
parent e57873b6dd
commit a56d27dd8b

View File

@@ -387,12 +387,12 @@ def get_github_host(args):
def get_github_repo_url(args, repository):
if args.prefer_ssh:
return repository['ssh_url']
if repository.get('is_gist'):
return repository['git_pull_url']
if args.prefer_ssh:
return repository['ssh_url']
auth = get_auth(args, False)
if auth:
repo_url = 'https://{0}@{1}/{2}/{3}.git'.format(