Merge pull request #172 from samanthaq/always-use-oauth-when-provided

fix: Always clone with OAuth token when provided
This commit is contained in:
Jose Diaz-Gonzalez
2021-02-13 03:53:26 -05:00
committed by GitHub

View File

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