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:23:50 -0400
commit3b1d01c1259a9d3182815a95c7613f4793b84a01 (patch)
treee20c8d996cce6c1fb868bc23687687ebc3c1040d
parent7b489414f50b16a57a127c95b0c8043c26fba965 (diff)
downloadb4-3b1d01c1259a9d3182815a95c7613f4793b84a01.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)