From d2c67a93626413b9cd7fd6ca0a7027f85ba79958 Mon Sep 17 00:00:00 2001 From: ericbsd Date: Wed, 29 Apr 2020 13:39:20 -0300 Subject: [PATCH] adding replace("-", "_") to fix branch variable from override --- build/tools/checkout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/tools/checkout.py b/build/tools/checkout.py index 04472d9..7c2ba0c 100755 --- a/build/tools/checkout.py +++ b/build/tools/checkout.py @@ -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):