t5616: make robust to delta base change
commitb54128bb0be630c96e90e48fb011dc81f52a8601
authorJonathan Tan <jonathantanmy@google.com>
Mon, 13 Jan 2020 20:28:23 +0000 (13 12:28 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Jan 2020 20:42:40 +0000 (27 12:42 -0800)
treec1af8fc47846956e66c59ab3fb7f73a619da5103
parenta0ba80001a42eeacae94e3503c3e7d4bf7f2f2e1
t5616: make robust to delta base change

Commit 6462d5eb9a ("fetch: remove fetch_if_missing=0", 2019-11-08)
contains a test that relies on having to lazily fetch the delta base of
a blob, but assumes that the tree being fetched (as part of the test) is
sent as a non-delta object. This assumption may not hold in the future;
for example, a change in the length of the object hash might result in
the tree being sent as a delta instead.

Make the test more robust by relying on having to lazily fetch the delta
base of the tree instead, and by making no assumptions on whether the
blobs are sent as delta or non-delta.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5616-partial-clone.sh