From a56d27dd8b8ad1f9ef94594d2ad8f4bab3983ff4 Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Sat, 21 Sep 2019 19:22:27 +0300 Subject: [PATCH] workaround gist clone in `--prefer-ssh` mode --- bin/github-backup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/github-backup b/bin/github-backup index 87fa565..efa44a6 100755 --- a/bin/github-backup +++ b/bin/github-backup @@ -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(