From b37d7937168f152c7a5e07cec2a2cea986032b3d Mon Sep 17 00:00:00 2001 From: Kevin Suo Date: Wed, 26 Feb 2020 18:25:25 +0800 Subject: Fix error in ignore logic The previous one only generate two commits in any range. --- bibisect_build.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bibisect_build.py b/bibisect_build.py index 892ca08..2d69a05 100755 --- a/bibisect_build.py +++ b/bibisect_build.py @@ -136,12 +136,13 @@ def generate_range_list(range_text): if ignore_msg.upper() in commit_msg.upper(): ignore = True break - # Also ignore if the commit is in the ignore_list_file - if commit_hash[:12] in ignore_list: - ignore = True - break if not ignore: - commits.append([commit_date, commit_time, commit_zone, commit_hash, commit_msg]) + # Also ignore if the commit is in the ignore_list_file + if commit_hash[:12] in ignore_list: + # ignore = True + continue + else: + commits.append([commit_date, commit_time, commit_zone, commit_hash, commit_msg]) # One build for each "step" source commits commits_to_be_build = commits[::step] -- cgit