unpack-objects: fix --strict handling
commitf2898cfadc85c763a4b8299ab833a2c733c8467a
authorJunio C Hamano <gitster@pobox.com>
Wed, 5 Mar 2008 07:46:51 +0000 (4 23:46 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Mar 2008 18:53:11 +0000 (5 10:53 -0800)
tree0399b89908c4f5ea9657dbc5cb8e44c59c3ee13b
parentc0e809e5c027443d6f77714a1c5f8c6233ca0a20
unpack-objects: fix --strict handling

Earlier attempt (which was reverted) called added_object() (by the way,
the function should be renamed to resolve_dependents() --- it is called
when we have a complete object data, and is responsible to resolve pending
deltified objects that use this object as their delta base object) without
updating obj_list[nr].sha1 with the correct value.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-unpack-objects.c
t/t5300-pack-object.sh