Add testcase for needless objects during a shallow fetch
commitf21d2a786b7fa6e53bb09e6466185b26f7f30d98
authorMatthijs Kooijman <matthijs@stdin.nl>
Wed, 28 Aug 2013 16:02:02 +0000 (28 18:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Aug 2013 18:57:28 +0000 (28 11:57 -0700)
treefda31a9554fa84241199c9d12a455d79817c4642
parentfbd4a7036dfa71ec89e7c441cef1ac9aaa59a315
Add testcase for needless objects during a shallow fetch

This is a testcase that checks for a problem where, during a specific
shallow fetch where the client does not have any commits that are a
successor of the new shallow root (i.e., the fetch creates a new
detached piece of history), the server would simply send over _all_
objects, instead of taking into account the objects already present in
the client.

The actual problem was fixed by a recent patch series by Nguyễn Thái
Ngọc Duy already.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5500-fetch-pack.sh