From 446f21d4d70e42813dd8cbfcb2a9d57dc8c407a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Mon, 3 Oct 2016 19:37:56 +0200 Subject: [PATCH] config: Accept empty branch in SCM dict MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If user sets `branch` to `None`, it should behave as if the branch is not set at all. Nagging them about removing it is not helping anything. Fixes: #415 Signed-off-by: Lubomír Sedlář --- pungi/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pungi/checks.py b/pungi/checks.py index fe8caab8..e32a6994 100644 --- a/pungi/checks.py +++ b/pungi/checks.py @@ -286,7 +286,7 @@ def _make_schema(): "enum": ["file", "cvs", "git", "rpm"], }, "repo": {"type": "string"}, - "branch": {"type": "string"}, + "branch": {"$ref": "#/definitions/optional_string"}, "file": {"type": "string"}, "dir": {"type": "string"}, },