diff options
author | Nicolas Pitre <nico@cam.org> | 2008-05-02 15:11:51 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-03 18:35:38 -0700 |
commit | 70baf5d41a933c7972375ae2583aad8c8b92633f (patch) | |
tree | 00b0137f24fefe438e607c4b1c9e8f79df12a0c4 /builtin-pack-objects.c | |
parent | ed4a9031ea75858d6f8ec387993e8ff731e29d1a (diff) | |
download | git-70baf5d41a933c7972375ae2583aad8c8b92633f.tar.gz git-70baf5d41a933c7972375ae2583aad8c8b92633f.tar.xz |
pack-objects: fix early eviction for max depth delta objects
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 <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-pack-objects.c')
-rw-r--r-- | 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 4a0c9c907..e20851e1c 100644 --- a/builtin-pack-objects.c +++ b/builtin-pack-objects.c @@ -1486,7 +1486,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; /* |