diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-06-22 16:07:45 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-06-22 16:07:45 -0400 |
commit | 45ef591d2fb245a06600514d8df57ab64d519fd8 (patch) | |
tree | 1aceada0b8b8f367291d27df48edd23b84c66afb | |
parent | c0dd194bdd9318107d187878a7a3b21c6eaf9b3b (diff) | |
download | b4-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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') |