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:25:22 -0400 |
commit | 2c9459df2f55ca6950cef0a914b44f7d27e94c95 (patch) | |
tree | 0298b9e555509635f31c5d1226081588a16a9ff2 | |
parent | aeb8301fa9b41410fc95c32e14ba5cd8bf0cb5aa (diff) | |
download | b4-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.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) |