summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_repo.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-02-13 15:31:01 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-03-03 16:21:14 +0100
commit91f33def73223721ad91f99040158f3ff54dffab (patch)
tree1781e6e22ff169fafc81697d6502bc9dc9f396cb /src/buildtool/file_system/git_repo.cpp
parentcab6734ee8d6ffc5a001144aead0ce6c79c90048 (diff)
downloadjustbuild-91f33def73223721ad91f99040158f3ff54dffab.tar.gz
GitRepoRemote: Correctly honor SSL certification settings in fetch and commit update
Uses the SSL certification utility method to correctly set the certification check options for the remote URL libgit2 calls. Due to the fact that remote operations are done via a temporary repository to allow concurrent work, the correct repository configuration needs to be interrogated. Thankfully, libgit2 provides a thread safe config snapshot object to be used in such scenarios. Also updates the existing GitRepoRemote tests accordingly.
Diffstat (limited to 'src/buildtool/file_system/git_repo.cpp')
-rw-r--r--src/buildtool/file_system/git_repo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/file_system/git_repo.cpp b/src/buildtool/file_system/git_repo.cpp
index baac7cf5..0b56099c 100644
--- a/src/buildtool/file_system/git_repo.cpp
+++ b/src/buildtool/file_system/git_repo.cpp
@@ -1073,7 +1073,7 @@ auto GitRepo::ReadTreeData(std::string const& data,
}
auto GitRepo::CreateShallowTree(tree_entries_t const& entries) noexcept
- -> std::optional<std::pair<std::string, std::string> > {
+ -> std::optional<std::pair<std::string, std::string>> {
#ifndef BOOTSTRAP_BUILD_TOOL
try {
InMemoryODBBackend b{kInMemoryODBParent, &entries};