summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_repo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/file_system/git_repo.cpp')
-rw-r--r--src/buildtool/file_system/git_repo.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/buildtool/file_system/git_repo.cpp b/src/buildtool/file_system/git_repo.cpp
index 800da4b8..176535b3 100644
--- a/src/buildtool/file_system/git_repo.cpp
+++ b/src/buildtool/file_system/git_repo.cpp
@@ -358,12 +358,10 @@ void fetch_backend_free(git_odb_backend* /*_backend*/) {}
auto const kFetchIntoODBParent = CreateFetchIntoODBParent();
// callback to remote fetch without an SSL certificate check
-const auto certificate_passthrough_cb = [](git_cert* /*cert*/,
- int /*valid*/,
- const char* /*host*/,
- void* /*payload*/) -> int {
- return 0;
-};
+const auto kCertificatePassthrough = [](git_cert* /*cert*/,
+ int /*valid*/,
+ const char* /*host*/,
+ void* /*payload*/) -> int { return 0; };
} // namespace
#endif // BOOTSTRAP_BUILD_TOOL
@@ -897,7 +895,7 @@ auto GitRepo::FetchFromPath(std::shared_ptr<git_config> cfg,
// no proxy
fetch_opts.proxy_opts.type = GIT_PROXY_NONE;
// no SSL verification
- fetch_opts.callbacks.certificate_check = certificate_passthrough_cb;
+ fetch_opts.callbacks.certificate_check = kCertificatePassthrough;
// disable update of the FETCH_HEAD pointer
fetch_opts.update_fetchhead = 0;