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