pretty: allow showing specific trailers
[gitweb.git] / archive-tar.c
index 0bc50f6e8944243c4f66659786beb63d6df48df6..7a535cba24a2a0535b412f1cfb3531ddde155c1e 100644 (file)
@@ -277,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(the_repository, oid, &size) == OBJ_BLOB &&
+           oid_object_info(args->repo, oid, &size) == OBJ_BLOB &&
            size > big_file_threshold)
                buffer = NULL;
        else if (S_ISLNK(mode) || S_ISREG(mode)) {