diff options
author | René Scharfe <l.s.r@web.de> | 2021-09-11 23:40:33 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-13 02:14:32 +0300 |
commit | 751530de5db77196a08897e3c47526c0f0147ef1 (patch) | |
tree | e125e868bcc65256aeab097cbb1be165b52a5bf8 /object-file.c | |
parent | 893b5635059a7e47b042073bc69ca0c5d9d15dc2 (diff) |
packfile: convert mark_bad_packed_object() to object_id
All callers have full object IDs, so pass them on instead of just their
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/object-file.c b/object-file.c index a8be899481..fb5a385a06 100644 --- a/object-file.c +++ b/object-file.c @@ -1616,7 +1616,7 @@ static int do_oid_object_info_extended(struct repository *r, return 0; rtype = packed_object_info(r, e.p, e.offset, oi); if (rtype < 0) { - mark_bad_packed_object(e.p, real->hash); + mark_bad_packed_object(e.p, real); return do_oid_object_info_extended(r, real, oi, 0); } else if (oi->whence == OI_PACKED) { oi->u.packed.offset = e.offset; |