32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 258fec5e76f3f4a3b9f40bc79c2f92dad1378b31 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= <lsedlar@redhat.com>
|
|
Date: Tue, 5 Mar 2019 14:45:21 +0100
|
|
Subject: [PATCH] checks: Use GitResolver for scm dicts
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Otherwise the offline flag is not honored correctly.
|
|
|
|
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
|
|
---
|
|
pungi/checks.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/pungi/checks.py b/pungi/checks.py
|
|
index a38db3c3..d7be16d2 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")
|
|
)
|
|
|
|
--
|
|
2.17.2
|
|
|