unpack_callback(): use unpack_failed() consistently
authorJunio C Hamano <gitster@pobox.com>
Sat, 19 Sep 2009 23:36:45 +0000 (16:36 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 29 Sep 2009 17:06:47 +0000 (10:06 -0700)
commit7654b3ad88aba17d2ad1385558b4114ce671de72
tree1f4acfdcd4a583977e4a72d495cdaf4c2cde2a3b
parent5e5556bcdee8ca231dd754a34af1e16cdef26cb5
unpack_callback(): use unpack_failed() consistently

When unpack_index_entry() failed, consistently call unpack_failed(),
instead of silently returning -1.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c