diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-05-11 14:23:50 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-05-11 14:23:50 -0400 |
commit | 3b1d01c1259a9d3182815a95c7613f4793b84a01 (patch) | |
tree | e20c8d996cce6c1fb868bc23687687ebc3c1040d | |
parent | 7b489414f50b16a57a127c95b0c8043c26fba965 (diff) | |
download | b4-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.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) |