summaryrefslogtreecommitdiff
path: root/object-file.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2021-09-11 22:42:20 +0200
committerJunio C Hamano <gitster@pobox.com>2021-09-12 16:14:32 -0700
commit7407d733a4a99cf946cab0c82e03c41dbd305b7c (patch)
tree008677608381161178adba306f3814373a3809b2 /object-file.c
parent751530de5db77196a08897e3c47526c0f0147ef1 (diff)
downloadgit-7407d733a4a99cf946cab0c82e03c41dbd305b7c.tar.gz
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>
Diffstat (limited to 'object-file.c')
-rw-r--r--object-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object-file.c b/object-file.c
index fb5a385a06..01e7058b4e 100644
--- a/object-file.c
+++ b/object-file.c
@@ -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();