diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-26 13:05:35 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-05 12:58:35 +0200 |
commit | 3440784e94de51c95d3dcca8509f8e46b4722ee6 (patch) | |
tree | 42b096e1766aa3706adf02b93508d721bed66efd /src/other_tools/root_maps/commit_git_map.cpp | |
parent | 595b7c27d175b56bd296b33dc535818a05cdbadd (diff) | |
download | justbuild-3440784e94de51c95d3dcca8509f8e46b4722ee6.tar.gz |
Pass Storage and StorageConfig to StorageUtils by reference
Diffstat (limited to 'src/other_tools/root_maps/commit_git_map.cpp')
-rw-r--r-- | src/other_tools/root_maps/commit_git_map.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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 = { |