From 7d7baa5e15b9ad6768d782d9bae5badc4e51d4ea Mon Sep 17 00:00:00 2001 From: Nicolas Pitre Date: Thu, 12 Jul 2007 22:27:12 -0400 Subject: [PATCH] Pack-objects: properly initialize the depth value Commit 5a235b5e was missing this little detail. Otherwise your pack will explode. Problem noted by Brian Downing. Signed-off-by: Nicolas Pitre Signed-off-by: Junio C Hamano --- builtin-pack-objects.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.11.4.GIT