From e941c48d49ebe24404515acf258d8003f2374627 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 23 May 2019 17:27:23 +0000 Subject: 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 Helped-by: Jeff King Signed-off-by: Junio C Hamano --- t/t6500-gc.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 't') diff --git a/t/t6500-gc.sh b/t/t6500-gc.sh index 515c6735e9..c0f04dc6b0 100755 --- a/t/t6500-gc.sh +++ b/t/t6500-gc.sh @@ -71,6 +71,8 @@ test_expect_success 'gc --keep-largest-pack' ' git gc --keep-largest-pack && ( cd .git/objects/pack && ls *.pack ) >pack-list && test_line_count = 2 pack-list && + awk "/^P /{print \$2}" <.git/objects/info/packs >pack-info && + test_line_count = 2 pack-info && test_path_is_file $BASE_PACK && git fsck ) -- cgit v1.2.3