Code

Clear the delta base cache during fast-import checkpoint
authorShawn O. Pearce <spearce@spearce.org>
Tue, 10 Feb 2009 21:36:12 +0000 (13:36 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Feb 2009 23:30:59 +0000 (15:30 -0800)
commit3d20c636af05c44a6ff4df9309c2bca108ee149b
tree97e2732bcb3039de582f9118077a43a1dc6e0472
parentab2fdb3b62589477bde0cd0af8239bee510c3488
Clear the delta base cache during fast-import checkpoint

Otherwise we may reuse the same memory address for a totally
different "struct packed_git", and a previously cached object from
the prior occupant might be returned when trying to unpack an object
from the new pack.

Found-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
fast-import.c
sha1_file.c