summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr/utils.cpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-04-03 16:38:54 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-04-04 15:18:45 +0200
commit95b3fcb09e94ac9f114509b205903b25a2bbd3ba (patch)
tree1ba56457c5ecdb8b6959213dc2458dbb6688b517 /src/other_tools/just_mr/utils.cpp
parent65b29dfc610d9393337c20e30f5b96e35dffebd0 (diff)
downloadjustbuild-95b3fcb09e94ac9f114509b205903b25a2bbd3ba.tar.gz
Make git root part of the storage config
In this way, we have the whole layout of the local build root consolidated in one place. Moreover, in this way, the location of the git root is also available to the build tool itself and can, e.g., be used as fallback CAS.
Diffstat (limited to 'src/other_tools/just_mr/utils.cpp')
-rw-r--r--src/other_tools/just_mr/utils.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/other_tools/just_mr/utils.cpp b/src/other_tools/just_mr/utils.cpp
index ca891875..d95163fa 100644
--- a/src/other_tools/just_mr/utils.cpp
+++ b/src/other_tools/just_mr/utils.cpp
@@ -20,10 +20,6 @@
namespace JustMR::Utils {
-auto GetGitCacheRoot() noexcept -> std::filesystem::path {
- return StorageConfig::BuildRoot() / "git";
-}
-
auto GetGitRoot(JustMR::PathsPtr const& just_mr_paths,
std::string const& repo_url) noexcept -> std::filesystem::path {
if (just_mr_paths->git_checkout_locations.contains(repo_url)) {
@@ -37,7 +33,7 @@ auto GetGitRoot(JustMR::PathsPtr const& just_mr_paths,
FileSystemManager::IsDirectory(repo_url_as_path)) {
return repo_url_as_path;
}
- return GetGitCacheRoot();
+ return StorageConfig::GitRoot();
}
auto CreateTypedTmpDir(std::string const& type) noexcept -> TmpDirPtr {