From: Junio C Hamano Date: Mon, 11 May 2026 01:05:52 +0000 (+0900) Subject: Merge branch 'dl/cache-tree-fully-valid-fix' X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab0691db4eada8252edeab0be04c1683e2f01979;p=thirdparty%2Fgit.git Merge branch 'dl/cache-tree-fully-valid-fix' The check that implements the logic to see if an in-core cache-tree is fully ready to write out a tree object was broken, which has been corrected. * dl/cache-tree-fully-valid-fix: cache-tree: fix inverted object existence check in cache_tree_fully_valid --- ab0691db4eada8252edeab0be04c1683e2f01979 diff --cc cache-tree.c index 7881b42aa2,366b1d7dcd..2b636eb3f8 --- a/cache-tree.c +++ b/cache-tree.c @@@ -238,8 -239,8 +238,8 @@@ int cache_tree_fully_valid(struct cache if (!it) return 0; if (it->entry_count < 0 || - odb_has_object(the_repository->objects, &it->oid, - ODB_HAS_OBJECT_RECHECK_PACKED | ODB_HAS_OBJECT_FETCH_PROMISOR)) + !odb_has_object(the_repository->objects, &it->oid, - HAS_OBJECT_RECHECK_PACKED | HAS_OBJECT_FETCH_PROMISOR)) ++ ODB_HAS_OBJECT_RECHECK_PACKED | ODB_HAS_OBJECT_FETCH_PROMISOR)) return 0; for (i = 0; i < it->subtree_nr; i++) { if (!cache_tree_fully_valid(it->down[i]->cache_tree))