diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c index a43d6040ca..5e9d1fd86c 100644 --- a/builtin-pack-objects.c +++ b/builtin-pack-objects.c @@ -1431,6 +1431,7 @@ static void free_unpacked(struct unpacked *n) window_memory_usage -= n->entry->size; } n->entry = NULL; + n->depth = 0; } static void find_deltas(struct object_entry **list, int window, int depth)