@matheusbsbs / matheus-bagliano / commits / 70baf5d41a
Fork 0

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>

Nicolas Pitre committed May 2, 2008 at 15:11 UTC 70baf5d41a933c7972375ae2583aad8c8b92633f
1 file changed +1 -1
builtin-pack-objects.c
+1 -1
@@ -1486,7 +1486,7 @@ static void find_deltas(struct object_entry **list, unsigned *list_size,
1486 * depth, leaving it in the window is pointless. we
1487 * should evict it first.
1488 */
1489 - if (entry->delta && depth <= n->depth)
1489 + if (entry->delta && max_depth <= n->depth)
1490 continue;
1491
1492 /*