summaryrefslogtreecommitdiff
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:39:04 -0500
commitf93b1b246eb8c5cf324bd0a64e91cb6ef49451a8 (patch)
tree356621a85567157d3f89706fef86300ca6bfbfd2
parent2f37e6f8e1401c7976f1f5f48bea404fe0e46af0 (diff)
downloadb4-f93b1b246eb8c5cf324bd0a64e91cb6ef49451a8.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: