Merge branch 'jk/detect-truncated-zlib-input' into maint
[gitweb.git] / sha1-file.c
index 6d6c3af6598c33623d10a930a39afaf9de74db1a..03b86aec710c3afffcd989bd357d28241a0271a7 100644 (file)
@@ -1317,7 +1317,7 @@ int oid_object_info_extended(struct repository *r, const struct object_id *oid,
                         * TODO Pass a repository struct through fetch_object,
                         * such that arbitrary repositories work.
                         */
-                       fetch_object(repository_format_partial_clone, real->hash);
+                       fetch_objects(repository_format_partial_clone, real, 1);
                        already_retried = 1;
                        continue;
                }