]> git.ipfire.org Git - thirdparty/git.git/blobdiff - unpack-trees.c
promisor-remote: accept 0 as oid_nr in function
[thirdparty/git.git] / unpack-trees.c
index 1ecdab330408a1cca7f703b6f2dc8d9b11ae0261..01c914912102e115503ac1670e594ad8f805aab9 100644 (file)
@@ -422,9 +422,8 @@ static int check_updates(struct unpack_trees_options *o)
                                continue;
                        oid_array_append(&to_fetch, &ce->oid);
                }
-               if (to_fetch.nr)
-                       promisor_remote_get_direct(the_repository,
-                                                  to_fetch.oid, to_fetch.nr);
+               promisor_remote_get_direct(the_repository,
+                                          to_fetch.oid, to_fetch.nr);
                oid_array_clear(&to_fetch);
        }
        for (i = 0; i < index->cache_nr; i++) {