checks: Use GitResolver for scm dicts
Otherwise the offline flag is not honored correctly. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
4431ea8a0c
commit
9541c75b7e
@ -304,7 +304,7 @@ def _extend_with_default_and_alias(validator_class, offline=False):
|
||||
# and there's a repo URL specified
|
||||
and "repo" in instance[property]
|
||||
):
|
||||
instance[property]["branch"] = util.resolve_git_ref(
|
||||
instance[property]["branch"] = resolver(
|
||||
instance[property]["repo"], instance[property].get("branch", "HEAD")
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user