summaryrefslogtreecommitdiff
path: root/src/buildtool/common/repository_config.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/common/repository_config.hpp')
-rw-r--r--src/buildtool/common/repository_config.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/buildtool/common/repository_config.hpp b/src/buildtool/common/repository_config.hpp
index 0060152d..218cd14d 100644
--- a/src/buildtool/common/repository_config.hpp
+++ b/src/buildtool/common/repository_config.hpp
@@ -31,6 +31,7 @@
#include "src/buildtool/file_system/file_root.hpp"
#include "src/buildtool/file_system/git_cas.hpp"
#include "src/buildtool/file_system/git_tree.hpp"
+#include "src/buildtool/logging/log_level.hpp"
#include "src/buildtool/multithreading/atomic_value.hpp"
#include "src/buildtool/storage/storage.hpp"
@@ -61,8 +62,9 @@ class RepositoryConfig {
}
[[nodiscard]] auto SetGitCAS(
- std::filesystem::path const& repo_path) noexcept {
- git_cas_ = GitCAS::Open(repo_path);
+ std::filesystem::path const& repo_path,
+ LogLevel log_level = LogLevel::Warning) noexcept -> bool {
+ git_cas_ = GitCAS::Open(repo_path, log_level);
return static_cast<bool>(git_cas_);
}