Skip to content

Commit 17fee66

Browse files
authored
Merge pull request josegonzalez#128 from Snawoot/master
Workaround gist clone in `--prefer-ssh` mode
2 parents e57873b + a56d27d commit 17fee66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/github-backup

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,12 @@ def get_github_host(args):
387387

388388

389389
def get_github_repo_url(args, repository):
390-
if args.prefer_ssh:
391-
return repository['ssh_url']
392-
393390
if repository.get('is_gist'):
394391
return repository['git_pull_url']
395392

393+
if args.prefer_ssh:
394+
return repository['ssh_url']
395+
396396
auth = get_auth(args, False)
397397
if auth:
398398
repo_url = 'https://{0}@{1}/{2}/{3}.git'.format(

0 commit comments

Comments
 (0)