Subject: Re: [PATCH v3 9/9] fetch-pack: wire up and enable auto filter logic

From: Patrick Steinhardt <[email-masked]>
Date: Fri, 13 Feb 2026 12:26:04 +0100

On Thu, Feb 12, 2026 at 11:08:40AM +0100, Christian Couder wrote:
> 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