aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-06-22 16:07:45 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-06-22 16:07:45 -0400
commit45ef591d2fb245a06600514d8df57ab64d519fd8 (patch)
tree1aceada0b8b8f367291d27df48edd23b84c66afb
parentc0dd194bdd9318107d187878a7a3b21c6eaf9b3b (diff)
downloadb4-45ef591d2fb245a06600514d8df57ab64d519fd8.tar.gz
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 <konstantin@linuxfoundation.org>
-rw-r--r--b4/mbox.py2
1 files changed, 1 insertions, 1 deletions
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')