aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Suo <suokunlong@126.com>2020-02-26 18:25:25 +0800
committerKevin Suo <suokunlong@126.com>2020-02-26 18:25:25 +0800
commitb37d7937168f152c7a5e07cec2a2cea986032b3d (patch)
tree897a00b0d7e7bfa9cd76acc05817edd02b924275
parent5819971db591b119a904773018fe8dd921efd586 (diff)
Fix error in ignore logic
The previous one only generate two commits in any range.
-rwxr-xr-xbibisect_build.py11
1 files 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]