]> 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 602f4db8d0113af18abb7cdee2c0b2ff6df8a22d..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++) {
@@ -1420,7 +1419,7 @@ static int clear_ce_flags_1(struct index_state *istate,
                                                name, &dtype, pl, istate);
                if (ret == UNDECIDED)
                        ret = default_match;
-               if (ret == MATCHED)
+               if (ret == MATCHED || ret == MATCHED_RECURSIVE)
                        ce->ce_flags &= ~clear_mask;
                cache++;
                progress_nr++;