From f93b1b246eb8c5cf324bd0a64e91cb6ef49451a8 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Tue, 1 Dec 2020 10:33:35 -0500 Subject: Fix b4 ty auto-matching When I changed auto_locate_series to return the exact patch number in addition to the matching commit_id, I introduced an off-by-one that caused all tracked series to start matching. Reported-by: Mark Brown Signed-off-by: Konstantin Ryabitsev --- b4/ty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b4/ty.py b/b4/ty.py index 842ec11..c6d13cb 100644 --- a/b4/ty.py +++ b/b4/ty.py @@ -375,7 +375,7 @@ def auto_thankanator(cmdargs): # Weed out series that have no matches at all found = False for commit in commits: - if commit[0] is not None: + if commit[1] is not None: found = True break if not found: -- cgit v1.2.3