diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 12:56:16 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 15:41:50 +0200 |
commit | 13e86fbbd0986a5f231f4f6bd5fd2423ba75f170 (patch) | |
tree | c5aa38fa2c87b0fcfda3a6fd3cc10fc98d1d1ac9 /src/buildtool/file_system/git_repo.cpp | |
parent | ab9ff1405f9dd27addb6106e6d6e3ea45c730cc4 (diff) | |
download | justbuild-13e86fbbd0986a5f231f4f6bd5fd2423ba75f170.tar.gz |
Name global constants using kCamelCase.
Diffstat (limited to 'src/buildtool/file_system/git_repo.cpp')
-rw-r--r-- | src/buildtool/file_system/git_repo.cpp | 12 |
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; |