summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-05-11 14:23:50 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-05-11 14:25:22 -0400
commit2c9459df2f55ca6950cef0a914b44f7d27e94c95 (patch)
tree0298b9e555509635f31c5d1226081588a16a9ff2
parentaeb8301fa9b41410fc95c32e14ba5cd8bf0cb5aa (diff)
downloadb4-2c9459df2f55ca6950cef0a914b44f7d27e94c95.tar.gz
Do not match everything in -a, only -s
While trying to be more permissive with messages selected manually with -s, we broke auto-thankanator by making it match everything. Reported-by: Mark Brown <broonie@kernel.org> Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/ty.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/b4/ty.py b/b4/ty.py
index 6949db1..a2f3d5f 100644
--- a/b4/ty.py
+++ b/b4/ty.py
@@ -364,7 +364,13 @@ def auto_thankanator(cmdargs):
else:
# This is a patch series
commits = auto_locate_series(gitdir, jsondata, wantbranch, since=cmdargs.since)
- if commits is None:
+ # Weed out series that have no matches at all
+ found = False
+ for commit in commits:
+ if commit[0] is not None:
+ found = True
+ break
+ if not found:
continue
jsondata['commits'] = commits
applied.append(jsondata)