diff --git a/pungi/checks.py b/pungi/checks.py index 0df15dd1..2f9478de 100644 --- a/pungi/checks.py +++ b/pungi/checks.py @@ -305,7 +305,8 @@ def _extend_with_default_and_alias(validator_class, offline=False): and "repo" in instance[property] ): instance[property]["branch"] = resolver( - instance[property]["repo"], instance[property].get("branch", "HEAD") + instance[property]["repo"], + instance[property].get("branch") or "HEAD", ) for error in _hook_errors(properties, instance, schema):