subtree: performance improvement for finding unexpected parent commits
[gitweb.git] / unpack-trees.c
index 65f157b9de5c75809980c1722ac67081dc2f92a1..51bfac6aa0bea246cdf6415490654b7ca2e4b9c2 100644 (file)
@@ -436,7 +436,7 @@ static int check_updates(struct unpack_trees_options *o)
                }
                if (to_fetch.nr)
                        fetch_objects(repository_format_partial_clone,
-                                     &to_fetch);
+                                     to_fetch.oid, to_fetch.nr);
                fetch_if_missing = fetch_if_missing_store;
                oid_array_clear(&to_fetch);
        }