git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: proto v2 fixes for maint (was Re: Preparing for a Git 2.26.3 release)

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 29, 2020, 05:56 UTC
Message-ID
<20200429055659.GC42649@google.com>
In-Reply-To
<xmqq7dxz4j62.fsf@gitster.c.googlers.com>
Junio C Hamano wrote:
> Jonathan Nieder <jrnieder@gmail.com> writes:
Show 12 quoted lines
>> The protocol version change was painful for users that fetch in the
>> same repo from linux-next and other linux remotes[5].  The problem has
>> been isolated and fixed, so we could either apply the revert or apply
>> the fixes[6].
>
> The demote patch hasn't even hit 'master'.
>
> My preference is to merge the demotion down to 'master' and 'maint'
> while merging down this fix to 'next' and to 'master'.
>
> And immediately revert the demotion on 'master', which will make the
> tip of 'master' with v2 as the default, with "this" fix.
Yes, sounds good to me.
By the way, the diagnosis in the demotion patch
    Users fetching from linux-next and other kernel remotes are reporting
    that the limited ref advertisement causes negotiation to reach
    MAX_IN_VAIN, resulting in too-large fetches.

turned out to be false, as Peff noticed. It wasn't due to the ref advertisement but was due to the protocol v2 code's reimplementation of negotiation. It's probably not worth amending the commit message, given that it's already in "next"; we can correct the record in the revert for 'master', which I should probably write during the day when I am less likely to make more errors.

Michal Suchánek wrote:
>                                   Why not merge the fixes for v2,
> though? Even if it is not the default keeping it broken in maint does
> not sound great.
Yes, I like the "demote and fix" approach you're recommending.

Thanks, Jonathan

Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 9 in “Preparing for a Git 2.26.3 release”
  1. Jonathan NiederApr 28, 2020
  2. Elijah NewrenApr 28, 2020
  3. proto v2 fixes for maint (was Re: Preparing for a Git 2.26.3 release)Junio C Hamano, Apr 28, 2020
  4. Michal SuchánekApr 28, 2020
  5. Junio C HamanoApr 28, 2020
  6. Jonathan NiederApr 29, 2020
  7. Junio C HamanoMay 8, 2020
  8. Johannes SchindelinMay 9, 2020
  9. Junio C HamanoMay 9, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.