From 9541c75b7e71df7b625cd62656388ceefe8611b2 Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Mar 06 2019 09:46:12 +0000 Subject: checks: Use GitResolver for scm dicts Otherwise the offline flag is not honored correctly. Signed-off-by: Lubomír Sedlář --- diff --git a/pungi/checks.py b/pungi/checks.py index a38db3c..d7be16d 100644 --- a/pungi/checks.py +++ b/pungi/checks.py @@ -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") )