From 33b94066f27199071abaa4067d29a98bbbbdae11 Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Tue, 16 Oct 2018 16:35:33 -0700 Subject: packfile: allow has_packed_and_bad to handle arbitrary repositories has_packed_and_bad is not widely used, so just migrate it all at once. Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- sha1-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sha1-file.c') diff --git a/sha1-file.c b/sha1-file.c index b8ce21cbaf..856e000ee1 100644 --- a/sha1-file.c +++ b/sha1-file.c @@ -1432,7 +1432,7 @@ void *read_object_file_extended(const struct object_id *oid, die(_("loose object %s (stored in %s) is corrupt"), oid_to_hex(repl), path); - if ((p = has_packed_and_bad(repl->hash)) != NULL) + if ((p = has_packed_and_bad(the_repository, repl->hash)) != NULL) die(_("packed object %s (stored in %s) is corrupt"), oid_to_hex(repl), p->pack_name); -- cgit v1.2.3