alloc: add repository argument to alloc_commit_index
[gitweb.git] / archive-tar.c
index 7a0d31d847904e1314769302af3bd61c4c330e3e..f93409324f9d4f18a4b44b35eb4b2cf3514234fb 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(the_repository, oid, &size) == OBJ_BLOB &&
            size > big_file_threshold)
                buffer = NULL;
        else if (S_ISLNK(mode) || S_ISREG(mode)) {