From 91f33def73223721ad91f99040158f3ff54dffab Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 13 Feb 2023 15:31:01 +0100 Subject: 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. --- src/buildtool/file_system/git_repo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buildtool/file_system/git_repo.cpp') 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::optional> { #ifndef BOOTSTRAP_BUILD_TOOL try { InMemoryODBBackend b{kInMemoryODBParent, &entries}; -- cgit v1.2.3