diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-04-04 16:57:03 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-04-10 14:06:21 +0200 |
commit | 43ac36b4cd2b6aa0b42219f5920a7b4e72832ae5 (patch) | |
tree | 0d65883f2ee2be905f775cd21eb7291783d6baa5 /src/other_tools/root_maps/content_git_map.cpp | |
parent | ea11727577ffdbb03d386ceec7edf47dc7d4e215 (diff) | |
download | justbuild-43ac36b4cd2b6aa0b42219f5920a7b4e72832ae5.tar.gz |
content_git_map: Remove redundant opening of Git cache
Diffstat (limited to 'src/other_tools/root_maps/content_git_map.cpp')
-rw-r--r-- | src/other_tools/root_maps/content_git_map.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/other_tools/root_maps/content_git_map.cpp b/src/other_tools/root_maps/content_git_map.cpp index 46326b91..2a6cad56 100644 --- a/src/other_tools/root_maps/content_git_map.cpp +++ b/src/other_tools/root_maps/content_git_map.cpp @@ -424,17 +424,10 @@ void ExtractAndImportToGit( } // only tree id is needed std::string archive_tree_id = values[0]->first; - // open Git CAS - auto just_git_cas = GitCAS::Open(StorageConfig::GitRoot()); - if (not just_git_cas) { - (*logger)("Could not open Git cache object database!", - /*fatal=*/true); - return; - } // write to id file and process subdir tree WriteIdFileAndSetWSRoot(key, archive_tree_id, - just_git_cas, + values[0]->second, /*just_git_cas*/ archive_tree_id_file, is_absent, serve_api_exists, |