From 45ef591d2fb245a06600514d8df57ab64d519fd8 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Tue, 22 Jun 2021 16:07:45 -0400 Subject: Fix wrong statement on patches without indexes Some patches don't have index information, so don't say they "apply clean to current tree" when they don't. Signed-off-by: Konstantin Ryabitsev --- b4/mbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b4/mbox.py b/b4/mbox.py index 7e01e44..0de7a96 100644 --- a/b4/mbox.py +++ b/b4/mbox.py @@ -246,7 +246,7 @@ def make_am(msgs, cmdargs, msgid): logger.critical(' Base: failed to guess base') else: checked, mismatches = lser.check_applies_clean(topdir, at=cmdargs.guessbranch) - if len(mismatches) == 0 and checked != mismatches: + if checked and len(mismatches) == 0 and checked != mismatches: logger.critical(' Base: applies clean to current tree') else: logger.critical(' Base: not specified') -- cgit v1.2.3