Skip to content
Snippets Groups Projects
Commit 64bcdb73 authored by Rawel's avatar Rawel
Browse files

since commitutils always creates a connection, we should stop that by saving the commit manually

parent 36e97988
Branches
No related tags found
No related merge requests found
...@@ -31,9 +31,10 @@ def run_worker(chunk: list[dict]): ...@@ -31,9 +31,10 @@ def run_worker(chunk: list[dict]):
continue continue
repo_node = get_config_nodes_repo_dict()[mapping["vcc_config_code"]] repo_node = get_config_nodes_repo_dict()[mapping["vcc_config_code"]]
commit_utils = CommitUtils(True, repo_node, mapping["vcc_config_code"]) commit_utils = CommitUtils(False, repo_node, None)
# We do not need to fetch by remote since the heuristic only uses local commits # We do not need to fetch by remote since the heuristic only uses local commits
commit_utils.get_commit_by_sha(most_blamed_commit, False) commit = commit_utils.get_commit_by_sha(most_blamed_commit, False)
db_repo.save_commit(commit, mapping["vcc_config_code"])
db_repo.update_vcc_fixing_commit( db_repo.update_vcc_fixing_commit(
mapping["mapping_id"], mapping["mapping_id"],
mapping["cve_id"], mapping["cve_id"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment