Skip to content

Commit 045eacb

Browse files
authored
Merge pull request josegonzalez#137 from einsteinx2/issue/134-only-use-auth-token-when-needed
Public repos no longer include the auth token
2 parents 7a234ba + e8a255b commit 045eacb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/github-backup

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

396396
auth = get_auth(args, False)
397-
if auth:
397+
if auth and repository['private'] == True:
398398
repo_url = 'https://{0}@{1}/{2}/{3}.git'.format(
399399
auth,
400400
get_github_host(args),

0 commit comments

Comments
 (0)