Re: [PATCH v3 0/3] Maintenance: adapt custom refspecs
- From
Derrick Stolee <stolee@gmail.com>
- Date
- Apr 12, 2021, 20:25 UTC
- Message-ID
- <e7f09182-3b75-f2a3-c9c7-0055cc377a32@gmail.com>
- In-Reply-To
- <20210412174113.g5iv4muedcklg7mv@dhcp-10-154-186-72.vpn.oracle.com>
On 4/12/21 1:41 PM, Tom Saeger wrote:>
Show 13 quoted lines
> Less ugly fix...
>
> diff --git a/builtin/fetch.c b/builtin/fetch.c
> index 30856b442b79..5fbffbd17d7d 100644
> --- a/builtin/fetch.c
> +++ b/builtin/fetch.c
> @@ -576,6 +576,8 @@ static struct ref *get_ref_map(struct remote *remote,
> if (has_merge &&
> !strcmp(branch->remote_name, remote->name))
> add_merge_config(&ref_map, remote_refs, branch, &tail);
> + } else if (prefetch) {
> + ;
> } else {I'll give this a try, but with "else if (!prefetch)" for the last block,instead.
Thanks for your diligent testing! It's helping a lot.
Thanks, -Stolee