mbox series

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

Message ID cover.1536767071.git.jonathantanmy@google.com (mailing list archive)
Headers show
Series Bugfix for partial clones and ref-in-want servers | expand

Message

Jonathan Tan Sept. 12, 2018, 3:47 p.m. UTC
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(-)