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

Re: filtering on git fetch?

From
Jeff King <peff@peff.net>
Date
Jun 17, 2020, 11:32 UTC
Message-ID
<20200617113234.GA703467@coredump.intra.peff.net>
In-Reply-To
<e3ec6fec-b872-b548-0eb0-d085ca36c99b@gmail.com>
On Wed, Jun 17, 2020 at 10:42:24AM +0200, Noel Grandin wrote:
> I tried (BTW my version is 2.26.2)
> 
> $ GIT_TRACE_PACKET=1 git -c protocol.version=2 pull -r
Ah, yeah, I think it should be the default in that version anyway.
Show 6 quoted lines
> and the first few lines look like
> 
> 10:35:59.323490 pkt-line.c:80           packet:        fetch<
> ad0351b84926075297fb74abbe9b31a0455782af HEAD\0 include-tag
> multi_ack_detailed multi_ack o
> fs-delta side-band side-band-64k thin-pack no-progress shallow agent=JGit/5.3.7.202002110540-r symref=HEAD:refs/heads/master
Yep, that's definitely v0.
> Is there something else I need to do on the client-side to make this work?

No, probably the server doesn't support v2. I double-checked myself, and couldn't get it to speak v2 either.

> Noting that the git server at gerrit.libreoffice.org might be a JGit based
> thing, so maybe I need to log a feature request there to support v2?

Probably. I'm fairly certain that JGit has supported v2 for a while. Just poking at `git log` in jgit.git shows some commits adding it around the 5.0 timeframe. So I'd think the version they're advertising would have it. I don't know offhand if there's a config option they'd need to flip on the server.

-Peff
Previous: Noel Grandin
Message 4 of 4 in “filtering on git fetch?”
  1. Noel GrandinJun 17, 2020
  2. Jeff KingJun 17, 2020
  3. Noel GrandinJun 17, 2020
  4. Jeff KingJun 17, 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.