sha1_loose_object_info(): do not return success on missing object
authorJunio C Hamano <gitster@pobox.com>
Wed, 6 Nov 2013 18:00:57 +0000 (10:00 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Nov 2013 19:03:33 +0000 (11:03 -0800)
Since 052fe5ea (sha1_loose_object_info: make type lookup optional,
2013-07-12), sha1_loose_object_info() returns happily without
checking if the object in question exists, which is not what the the
caller sha1_object_info_extended() expects; the caller does not even
bother checking the existence of the object itself.

Noticed-by: Sven Brauch <svenbrauch@googlemail.com>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found