adding replace("-", "_") to fix branch variable from override

This commit is contained in:
ericbsd
2020-04-29 13:39:20 -03:00
parent 996dc0e00a
commit d2c67a9362

View File

@@ -97,7 +97,7 @@ def checkout_repo(cwd, repo):
repo_path = repo['path']
repo_url = repo['url']
mirror_url = e(f'${{REPO_{repo_name.replace("-", "_").upper()}_URL}}')
branch = e(f'${{{repo_name.upper()}_OVERRIDE}}') or repo['branch']
branch = e(f'${{{repo_name.replace("-", "_").upper()}_OVERRIDE}}') or repo['branch']
if mirror_url:
if get_latest_commit(mirror_url, branch) == get_latest_commit(repo_url, branch):