Author: Andy Green Date: Fri May 02 06:32:19 2025 +0100 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 */