server-info: do not list unlinked packs
commite941c48d49ebe24404515acf258d8003f2374627
authorEric Wong <e@80x24.org>
Thu, 23 May 2019 17:27:23 +0000 (23 17:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 May 2019 18:02:52 +0000 (28 11:02 -0700)
treea4c1552889d97511831b791517b0d9d3d56d5ddd
parentaa25c82427ae70aebf3b8f970f2afd54e9a2a8c6
server-info: do not list unlinked packs

Having non-existent packs in objects/info/packs causes
dumb HTTP clients to abort.

v2: use single loop with ALLOC_GROW as suggested by Jeff King

Signed-off-by: Eric Wong <e@80x24.org>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
server-info.c
t/t6500-gc.sh