From: Nicolas Pitre Date: Fri, 02 May 2008 19:11:51 GMT Subject: [PATCH 7/7] pack-objects: fix early eviction for max depth delta objects Message-ID: <1209755511-7840-8-git-send-email-nico@cam.org> In-Reply-To: <1209755511-7840-7-git-send-email-nico@cam.org> The 'depth' variable doesn't reflect the actual maximum depth used when other objects already depend on the current one. Signed-off-by: Nicolas Pitre --- builtin-pack-objects.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c index f5dcd20..94c9875 100644 --- a/builtin-pack-objects.c +++ b/builtin-pack-objects.c @@ -1484,7 +1484,7 @@ static void find_deltas(struct object_entry **list, unsigned *list_size, * depth, leaving it in the window is pointless. we * should evict it first. */ - if (entry->delta && depth <= n->depth) + if (entry->delta && max_depth <= n->depth) continue; /* -- 1.5.5.1.226.g6f6e8