aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)