From 38a8de5510da52765cf81348a1137d91b42d3088 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