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:
Lubomír Sedlář 2019-03-05 14:45:21 +01:00 committed by lsedlar
parent 4431ea8a0c
commit 9541c75b7e

View File

@ -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")
)