Merge branch 'nd/completion-aliasfiletype-typofix'
[gitweb.git] / archive-tar.c
index 3563bcb9f263f7782a77c679bf9be32af6bd13df..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 &&
-           oid_object_info(oid, &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)) {