diff options
author | Stefan Beller <sbeller@google.com> | 2018-10-16 23:35:33 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-19 07:21:10 (GMT) |
commit | 33b94066f27199071abaa4067d29a98bbbbdae11 (patch) | |
tree | c884dec2172508445bc0f23abf6a9e655384ffee /sha1-file.c | |
parent | 1b9b5c695e34051c80c9240fdb22e7c89ff0fd5f (diff) | |
download | git-33b94066f27199071abaa4067d29a98bbbbdae11.zip git-33b94066f27199071abaa4067d29a98bbbbdae11.tar.gz git-33b94066f27199071abaa4067d29a98bbbbdae11.tar.bz2 |
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 <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1-file.c')
-rw-r--r-- | sha1-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1-file.c b/sha1-file.c index b8ce21c..856e000 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); |