Commits

Nicolas Pitre  committed 7d7baa5

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 <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

  • Participants
  • Parent commits 61c3f90

Comments (0)

Files changed (1)

File builtin-pack-objects.c

 		window_memory_usage -= n->entry->size;
 	}
 	n->entry = NULL;
+	n->depth = 0;
 }
 
 static void find_deltas(struct object_entry **list, int window, int depth)