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

Re: Possible regression in git 2.26.0

From
Jeff King <peff@peff.net>
Date
Apr 10, 2020, 21:00 UTC
Message-ID
<20200410210044.GA2074620@coredump.intra.peff.net>
In-Reply-To
<20200331172218.evsoljccfmjec2mz@chatter.i7.local>
On Tue, Mar 31, 2020 at 01:22:18PM -0400, Konstantin Ryabitsev wrote:
Show 12 quoted lines
> 16:47 <sfr> repo: git://anongit.freedesktop.org/drm/drm-misc branch: for-linux-next
> 16:48 <sfr> went from trying to transfer 7226542 to just 19
> 16:48 <sfr> even after I did a reset of the remote branch at my end and a gc
> 16:49 <sfr> it updated b1e7396a1d0e..98878d9dfc7a
> 16:50 <sfr> in case it matters, I have "tagopt = --no-tags" set for all the repos
>             I fetch (for obvious reasons)
> 16:52 <sfr> removing the protocol.version=1 (and resetting/gcing) gets me the bad 
>             behaviour again :-(
> 16:52 <sfr> mricon: so good shot! :-)
> 
> It appears that there are cases where protocol.version=2 is causing 
> weird results during ref negotiation?

Possibly. The underlying negotiation technique is roughly the same, but it's possible there's a subtle difference in the v2 code.

I spent a little time trying to reproduce with the branch mentioned above, but couldn't. If somebody hits it again, the most useful thing would be:

  - a dump of "git for-each-ref" in the client repo
  - the exact fetch (or pull) command which behaves differently between
    the two protocols
-Peff
Previous: Konstantin RyabitsevNext: Jeff King
Message 3 of 8 in “Possible regression in git 2.26.0”
  1. Josep TorraMar 31, 2020
  2. Konstantin RyabitsevMar 31, 2020
  3. Jeff KingApr 10, 2020
  4. Jeff KingApr 3, 2020
  5. Jeff KingApr 3, 2020
  6. Junio C HamanoApr 3, 2020
  7. Jeff KingApr 4, 2020
  8. Jeff KingApr 7, 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.