summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/serve_service/source_tree.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2025-05-26 14:46:25 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2025-06-04 14:34:44 +0200
commit811e9be4cc9604dba3d768639444c0d9f849a3c7 (patch)
tree15460350b2554be422b76c0cc817a4e5d8a1421e /src/buildtool/serve_api/serve_service/source_tree.cpp
parent8d4f583d63c657397583f778096b8bcb6d96c12f (diff)
downloadjustbuild-811e9be4cc9604dba3d768639444c0d9f849a3c7.tar.gz
RepositoryConfig: Give access to a persistent storage config...
...whenever it is given access to a Git repository. The referenced storage config needs to outlive the repository config instance.
Diffstat (limited to 'src/buildtool/serve_api/serve_service/source_tree.cpp')
-rw-r--r--src/buildtool/serve_api/serve_service/source_tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/serve_api/serve_service/source_tree.cpp b/src/buildtool/serve_api/serve_service/source_tree.cpp
index 7ffe176e..35d5797a 100644
--- a/src/buildtool/serve_api/serve_service/source_tree.cpp
+++ b/src/buildtool/serve_api/serve_service/source_tree.cpp
@@ -370,7 +370,7 @@ auto SourceTreeService::SyncGitEntryToCas(
}
auto repo = RepositoryConfig{};
- if (not repo.SetGitCAS(repo_path)) {
+ if (not repo.SetGitCAS(repo_path, native_context_->storage_config)) {
logger_->Emit(
LogLevel::Error, "Failed to SetGitCAS at {}", repo_path.string());
return TResponse::INTERNAL_ERROR;