From 2c9459df2f55ca6950cef0a914b44f7d27e94c95 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Mon, 11 May 2020 14:23:50 -0400 Subject: 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 Signed-off-by: Konstantin Ryabitsev --- b4/ty.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3