packfile: convert has_packed_and_bad() to object_id
The single caller has a full object ID, so pass it on instead of just its hash member. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
751530de5d
commit
7407d733a4
@ -1725,7 +1725,7 @@ void *read_object_file_extended(struct repository *r,
|
||||
die(_("loose object %s (stored in %s) is corrupt"),
|
||||
oid_to_hex(repl), path);
|
||||
|
||||
if ((p = has_packed_and_bad(r, repl->hash)) != NULL)
|
||||
if ((p = has_packed_and_bad(r, repl)) != NULL)
|
||||
die(_("packed object %s (stored in %s) is corrupt"),
|
||||
oid_to_hex(repl), p->pack_name);
|
||||
obj_read_unlock();
|
||||
|
Reference in New Issue
Block a user