From: Nicolas Pitre Date: Fri, 13 Jul 2007 02:27:12 +0000 (-0400) Subject: Pack-objects: properly initialize the depth value X-Git-Tag: v1.5.3-rc2~26 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7d7baa5e15b9ad6768d782d9bae5badc4e51d4ea;p=git.git 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 --- diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c index a43d6040c..5e9d1fd86 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)