Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
    npro  
 Modern all-safe Rust Network Protocol library supporting h1, h2, h3, ws, wt sans-IO and with socket IO + tls
git clone https://npro.rs/repo/npro
 
root / src / builder / b-metrics.c
Author[]Andy Green <andy@warmcat.com> 2025-05-02 05:32 UTC
Committer[]Andy Green <andy@warmcat.com> 2025-05-02 05:32 UTC
Tree11171768767a501f57a6ebee007cf7b6f012361d   Raw Patch
 
libgit2: initialize struct if libgit2 version requires
libgit2: initialize struct if libgit2 version requires
diff --git a/src/builder/b-mirror.c b/src/builder/b-mirror.c index 7bca81a..a832de6 100644 --- a/src/builder/b-mirror.c +++ b/src/builder/b-mirror.c @@ -592,6 +592,10 @@ thread_repo(void *d) lws_snprintf(spec, sizeof(spec), "%s:ref-%s", rcopy.ref, rcopy.hash); fprintf(stderr, "%s: fetching %s %s\n", __func__, rcopy.url, spec); +#if defined(LIBGIT2_HAVE_GIT_PROXY_OPTIONS_INIT) + git_proxy_options_init(&opts.proxy_opts, GIT_PROXY_OPTIONS_VERSION); +#endif + /* * This may take an open-ended amount of time */
Page fetched 0s ago, creation time: 1ms (vhost etag hits: 0%, cache hits: 0%)