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>
This commit is contained in:
parent
61c3f9086a
commit
7d7baa5e15
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user