Merge pull request #128 from Snawoot/master

Workaround gist clone in `--prefer-ssh` mode
This commit is contained in:
Jose Diaz-Gonzalez
2019-09-23 11:44:21 -04:00
committed by GitHub

View File

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