sha1_file: convert sha1_object_info* to object_id
[gitweb.git] / archive-tar.c
index 7a0d31d847904e1314769302af3bd61c4c330e3e..3563bcb9f263f7782a77c679bf9be32af6bd13df 100644 (file)
@@ -276,7 +276,7 @@ static int write_tar_entry(struct archiver_args *args,
                memcpy(header.name, path, pathlen);
 
        if (S_ISREG(mode) && !args->convert &&
-           sha1_object_info(oid->hash, &size) == OBJ_BLOB &&
+           oid_object_info(oid, &size) == OBJ_BLOB &&
            size > big_file_threshold)
                buffer = NULL;
        else if (S_ISLNK(mode) || S_ISREG(mode)) {