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

[PATCH 0/2] Bugfix for partial clones and ref-in-want servers

From
JTJonathan Tan <jonathantanmy@google.com>
Date
Sep 12, 2018, 15:47 UTC
Message-ID
<cover.1536767071.git.jonathantanmy@google.com>

A coworker discovered a bug when having a partial clone against a server that supports ref-in-want - the lazy fetches no longer work, because the client attempts to fetch with "want-ref <hash>", which is not permitted by the protocol.

The first patch deduplicates some code, so that the bugfix need only be applied once, and the second patch contains the actual bugfix.

Jonathan Tan (2):
  fetch-object: provide only one fetching function
  fetch-object: set exact_oid when fetching
 fetch-object.c           | 17 ++++++-----------
 fetch-object.h           |  8 ++------
 sha1-file.c              |  2 +-
 t/t0410-partial-clone.sh | 12 ++++++++++++
 unpack-trees.c           |  2 +-
 5 files changed, 22 insertions(+), 19 deletions(-)
-- 
2.19.0.397.gdd90340f6a-goog
Next: Jonathan Tan
Message 1 of 6 in “Bugfix for partial clones and ref-in-want servers”
  1. 0/2 Bugfix for partial clones and ref-in-want serversJonathan Tan, Sep 12, 2018
  2. 1/2 fetch-object: provide only one fetching functionJonathan Tan, Sep 12, 2018
  3. Junio C HamanoSep 12, 2018
  4. Jonathan TanSep 13, 2018
  5. Junio C HamanoSep 13, 2018
  6. 2/2 fetch-object: set exact_oid when fetchingJonathan Tan, Sep 12, 2018

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.