Merge pull request #137 from einsteinx2/issue/134-only-use-auth-token-when-needed

Public repos no longer include the auth token
This commit is contained in:
Jose Diaz-Gonzalez
2020-01-07 11:44:23 -05:00
committed by GitHub

View File

@@ -394,7 +394,7 @@ def get_github_repo_url(args, repository):
return repository['ssh_url'] return repository['ssh_url']
auth = get_auth(args, False) auth = get_auth(args, False)
if auth: if auth and repository['private'] == True:
repo_url = 'https://{0}@{1}/{2}/{3}.git'.format( repo_url = 'https://{0}@{1}/{2}/{3}.git'.format(
auth, auth,
get_github_host(args), get_github_host(args),