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>
This commit is contained in:
committed by
Junio C Hamano
parent
af8caf33d5
commit
d61d87bd15
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user