Merge pull request 'Remove quotes from git config' (#870) from dboreham/fix-git-config-command into main

Reviewed-on: cerc-io/stack-orchestrator#870
This commit is contained in:
David Boreham 2024-07-05 15:56:12 +00:00
commit a2d6201be9

View File

@ -256,7 +256,7 @@ def build_container_image(app_record, tag, extra_build_args=[], logger=None):
if github_token:
logger.log("Github token detected, setting it in the git environment")
git_config_args = [
"git", "config", "--global", f"url.\"https://{github_token}:@github.com/\".insteadOf", "https://github.com/"
"git", "config", "--global", f"url.https://{github_token}:@github.com/.insteadOf", "https://github.com/"
]
result = subprocess.run(git_config_args, stdout=logger.file, stderr=logger.file)
result.check_returncode()