mirror of
https://github.com/truenas/core-build.git
synced 2026-02-15 07:36:18 +00:00
adding replace("-", "_") to fix branch variable from override
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user