From b42d35c1afbe8a55e2ac25bd5202b35fde158a66 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Mon, 3 Jun 2019 16:29:29 +0200 Subject: [PATCH] Prevent generation of empty branch names. --- swh/model/hypothesis_strategies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swh/model/hypothesis_strategies.py b/swh/model/hypothesis_strategies.py index 3e006c8a..61c55e11 100644 --- a/swh/model/hypothesis_strategies.py +++ b/swh/model/hypothesis_strategies.py @@ -143,7 +143,7 @@ def contents(draw): def branch_names(): - return binary() + return binary(min_size=1) def branch_targets_object(): -- GitLab