Merge branch 'jk/branch-l-0-deprecation' into next
[gitweb.git] / unpack-trees.c
index 31a2cf2d0b5422b6c046da1a5f7600557b75977c..79fd97074ec238714634de1c9e6144accdc710f3 100644 (file)
@@ -391,6 +391,7 @@ static int check_updates(struct unpack_trees_options *o)
                        fetch_objects(repository_format_partial_clone,
                                      &to_fetch);
                fetch_if_missing = fetch_if_missing_store;
+               oid_array_clear(&to_fetch);
        }
        for (i = 0; i < index->cache_nr; i++) {
                struct cache_entry *ce = index->cache[i];