]> git.ipfire.org Git - thirdparty/git.git/blobdiff - archive-tar.c
commit: add repository argument to commit_graft_pos
[thirdparty/git.git] / archive-tar.c
index 3563bcb9f263f7782a77c679bf9be32af6bd13df..e38435eb4ef93bb0805b407c01722e22f4a9706b 100644 (file)
@@ -5,6 +5,7 @@
 #include "config.h"
 #include "tar.h"
 #include "archive.h"
+#include "object-store.h"
 #include "streaming.h"
 #include "run-command.h"
 
@@ -276,7 +277,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)) {