Skip to content

Commit 0c924c3

Browse files
authored
Merge pull request josegonzalez#172 from samanthaq/always-use-oauth-when-provided
fix: Always clone with OAuth token when provided
2 parents a53d7f6 + f62c4ea commit 0c924c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github_backup/github_backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def get_github_repo_url(args, repository):
420420
return repository['ssh_url']
421421

422422
auth = get_auth(args, encode=False, for_git_cli=True)
423-
if auth and repository['private'] is True:
423+
if auth:
424424
repo_url = 'https://{0}@{1}/{2}/{3}.git'.format(
425425
auth,
426426
get_github_host(args),

0 commit comments

Comments
 (0)