]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/unpack-file.c
sha1_file: convert read_sha1_file to struct object_id
[thirdparty/git.git] / builtin / unpack-file.c
index 32e01555774c838e489fd33c675488e754c3e8e2..300eb59657e29cace38798029a9170834cac7c9e 100644 (file)
@@ -9,7 +9,7 @@ static char *create_temp_file(struct object_id *oid)
        unsigned long size;
        int fd;
 
-       buf = read_sha1_file(oid->hash, &type, &size);
+       buf = read_object_file(oid, &type, &size);
        if (!buf || type != OBJ_BLOB)
                die("unable to read blob object %s", oid_to_hex(oid));