From 34751cf016682ad4cc626291e3ce8b937c253706 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Fri, 18 Sep 2020 14:10:10 +1000 Subject: [PATCH] bisector: early exit when old_commit == new_commit. (#4458) But do this after computing repo_url as that's still useful information. --- infra/bisector.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infra/bisector.py b/infra/bisector.py index f6e135e58..b1b690d50 100644 --- a/infra/bisector.py +++ b/infra/bisector.py @@ -179,6 +179,9 @@ def _bisect(bisect_type, old_commit, new_commit, test_case_path, fuzz_target, if not repo_url or not repo_path: raise ValueError('Main git repo can not be determined.') + if old_commit == new_commit: + raise BisectError('old_commit is the same as new_commit', repo_url) + # Copy /src from the built Docker container to ensure all dependencies # exist. This will be mounted when running them. host_src_dir = build_specified_commit.copy_src_from_docker(