]> git.ipfire.org Git - thirdparty/git.git/blobdiff - archive-zip.c
archive-*.c: use the right repository
[thirdparty/git.git] / archive-zip.c
index 74f3fe9103420571c9f22273ae44ebb9d5715c78..107da5f97ed3e37b66b298511159223affde4060 100644 (file)
@@ -6,6 +6,7 @@
 #include "archive.h"
 #include "streaming.h"
 #include "utf8.h"
+#include "object-store.h"
 #include "userdiff.h"
 #include "xdiff-interface.h"
 
@@ -325,7 +326,7 @@ static int write_zip_entry(struct archiver_args *args,
                compressed_size = 0;
                buffer = NULL;
        } else if (S_ISREG(mode) || S_ISLNK(mode)) {
-               enum object_type type = oid_object_info(the_repository, oid,
+               enum object_type type = oid_object_info(args->repo, oid,
                                                        &size);
 
                method = 0;