index-pack: Don't follow replace refs.
commit6e2a09d24b2634cdfec3395122cd4a07eb517b0d
authorNelson Elhage <nelhage@ksplice.com>
Thu, 12 Aug 2010 14:18:12 +0000 (12 10:18 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Aug 2010 20:26:05 +0000 (12 13:26 -0700)
treeae449e38f0318eda974a772a283f468203e726a0
parentb5e233ecc411c8685463333d180a135c6866c50e
index-pack: Don't follow replace refs.

Without this, attempting to index a pack containing objects that have been
replaced results in a fatal error that looks like:

fatal: SHA1 COLLISION FOUND WITH <replaced-object> !

Signed-off-by: Nelson Elhage <nelhage@ksplice.com>
Acked-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/index-pack.c
t/t6050-replace.sh