Rename BaseRepoManager -> RepoManager. (#4800)

This was renamed in b0b99d5ccd
This commit is contained in:
Oliver Chang 2020-12-08 10:01:38 +11:00 committed by GitHub
parent e193d59148
commit a23d9bc6fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -187,7 +187,7 @@ def _bisect(bisect_type, old_commit, new_commit, test_case_path, fuzz_target,
host_src_dir = build_specified_commit.copy_src_from_docker( host_src_dir = build_specified_commit.copy_src_from_docker(
build_data.project_name, tmp_dir) build_data.project_name, tmp_dir)
bisect_repo_manager = repo_manager.BaseRepoManager( bisect_repo_manager = repo_manager.RepoManager(
os.path.join(host_src_dir, os.path.basename(repo_path))) os.path.join(host_src_dir, os.path.basename(repo_path)))
commit_list = bisect_repo_manager.get_commit_list(new_commit, old_commit) commit_list = bisect_repo_manager.get_commit_list(new_commit, old_commit)
@ -299,7 +299,7 @@ def bisect(bisect_type, old_commit, new_commit, test_case_path, fuzz_target,
fuzz_target, build_data) fuzz_target, build_data)
finally: finally:
# Clean up projects/ as _bisect may have modified it. # Clean up projects/ as _bisect may have modified it.
oss_fuzz_repo_manager = repo_manager.BaseRepoManager(helper.OSS_FUZZ_DIR) oss_fuzz_repo_manager = repo_manager.RepoManager(helper.OSS_FUZZ_DIR)
oss_fuzz_repo_manager.git(['reset', 'projects']) oss_fuzz_repo_manager.git(['reset', 'projects'])
oss_fuzz_repo_manager.git(['checkout', 'projects']) oss_fuzz_repo_manager.git(['checkout', 'projects'])
oss_fuzz_repo_manager.git(['clean', '-fxd', 'projects']) oss_fuzz_repo_manager.git(['clean', '-fxd', 'projects'])

View File

@ -192,7 +192,7 @@ def build_fuzzers_from_commit(commit,
Returns: Returns:
0 on successful build or error code on failure. 0 on successful build or error code on failure.
""" """
oss_fuzz_repo_manager = repo_manager.BaseRepoManager(helper.OSS_FUZZ_DIR) oss_fuzz_repo_manager = repo_manager.RepoManager(helper.OSS_FUZZ_DIR)
num_retry = 1 num_retry = 1
def cleanup(): def cleanup():
@ -385,7 +385,7 @@ def main():
with tempfile.TemporaryDirectory() as tmp_dir: with tempfile.TemporaryDirectory() as tmp_dir:
host_src_dir = copy_src_from_docker(args.project_name, tmp_dir) host_src_dir = copy_src_from_docker(args.project_name, tmp_dir)
build_repo_manager = repo_manager.BaseRepoManager( build_repo_manager = repo_manager.RepoManager(
os.path.join(host_src_dir, os.path.basename(repo_path))) os.path.join(host_src_dir, os.path.basename(repo_path)))
base_builder_repo = load_base_builder_repo() base_builder_repo = load_base_builder_repo()