From 3440784e94de51c95d3dcca8509f8e46b4722ee6 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Wed, 26 Jun 2024 13:05:35 +0200 Subject: Pass Storage and StorageConfig to StorageUtils by reference --- src/other_tools/root_maps/commit_git_map.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/other_tools/root_maps/commit_git_map.cpp') diff --git a/src/other_tools/root_maps/commit_git_map.cpp b/src/other_tools/root_maps/commit_git_map.cpp index 7d74dc43..fac4d98d 100644 --- a/src/other_tools/root_maps/commit_git_map.cpp +++ b/src/other_tools/root_maps/commit_git_map.cpp @@ -435,7 +435,8 @@ void EnsureCommit(GitRepoInfo const& repo_info, return; } if (not is_commit_present.value()) { - auto tree_id_file = StorageUtils::GetCommitTreeIDFile(repo_info.hash); + auto tree_id_file = StorageUtils::GetCommitTreeIDFile( + StorageConfig::Instance(), repo_info.hash); // Check if we have stored a file association between commit and tree; // if an association file exists, the respective tree MUST be in the // Git cache @@ -950,8 +951,8 @@ auto CreateCommitGitMap( if (fetch_repo_path) { fetch_repo = std::filesystem::absolute(*fetch_repo_path).string(); } - std::filesystem::path repo_root = - StorageUtils::GetGitRoot(just_mr_paths, fetch_repo); + std::filesystem::path repo_root = StorageUtils::GetGitRoot( + StorageConfig::Instance(), just_mr_paths, fetch_repo); // ensure git repo // define Git operation to be done GitOpKey op_key = { -- cgit v1.2.3