Re: [PATCH v3 9/9] fetch-pack: wire up and enable auto filter logic
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Feb 13, 2026, 11:26 UTC
- Message-ID
- <aY8KTOrCbm7noIVw@pks.im>
- In-Reply-To
- <20260212100843.883623-10-christian.couder@gmail.com>
On Thu, Feb 12, 2026 at 11:08:40AM +0100, Christian Couder wrote:
Show 12 quoted lines
> diff --git a/fetch-pack.c b/fetch-pack.c
> index 40316c9a34..9f8f980516 100644
> --- a/fetch-pack.c
> +++ b/fetch-pack.c
> @@ -1661,6 +1662,29 @@ static struct ref *do_fetch_pack_v2(struct fetch_pack_args *args,
> struct string_list packfile_uris = STRING_LIST_INIT_DUP;
> int i;
> struct strvec index_pack_args = STRVEC_INIT;
> + const char *promisor_remote_config;
> +
> + if (server_feature_v2("promisor-remote", &promisor_remote_config))
> + promisor_remote_reply(promisor_remote_config, NULL);And here we now pass a `NULL` pointer so that we don't have to free the result that we didn't want to have in the first place. Good.
Patrick