aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-12-01 10:33:35 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-12-01 10:33:35 -0500
commit38a8de5510da52765cf81348a1137d91b42d3088 (patch)
tree56e450f425499e10f3e1a621245b36d89b6661c9
parent45c63bd0fd80fb59ef5b75a305890338c507d3fa (diff)
downloadb4-38a8de5510da52765cf81348a1137d91b42d3088.tar.gz
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 <broonie@kernel.org> Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/ty.py2
1 files changed, 1 insertions, 1 deletions
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: