summaryrefslogtreecommitdiff
path: root/builtin/fsck.c
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2018-03-12 02:27:38 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-03-14 09:23:48 -0700
commitd61d87bd156a1d49b827d1b26f023fd70febfa06 (patch)
treedc70591686c1769f5146b0e0822aec366a1b8dfc /builtin/fsck.c
parentbuiltin/index-pack: convert struct ref_delta_entry to object_id (diff)
downloadtgif-d61d87bd156a1d49b827d1b26f023fd70febfa06.tar.xz
sha1_file: convert read_loose_object to use struct object_id
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fsck.c')
-rw-r--r--builtin/fsck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fsck.c b/builtin/fsck.c
index ef78c6c00c..eae018e3fb 100644
--- a/builtin/fsck.c
+++ b/builtin/fsck.c
@@ -513,7 +513,7 @@ static struct object *parse_loose_object(const struct object_id *oid,
unsigned long size;
int eaten;
- if (read_loose_object(path, oid->hash, &type, &size, &contents) < 0)
+ if (read_loose_object(path, oid, &type, &size, &contents) < 0)
return NULL;
if (!contents && type != OBJ_BLOB)