Git fork

Merge branch 'jk/fetch-check-graph-objects-fix' into maint-2.51

Under a race against another process that is repacking the
repository, especially a partially cloned one, "git fetch" may
mistakenly think some objects we do have are missing, which has
been corrected.

* jk/fetch-check-graph-objects-fix:
fetch-pack: re-scan when double-checking graph objects

+2 -1
+2 -1
fetch-pack.c
··· 143 143 commit = lookup_commit_in_graph(the_repository, oid); 144 144 if (commit) { 145 145 if (mark_tags_complete_and_check_obj_db) { 146 - if (!odb_has_object(the_repository->objects, oid, 0)) 146 + if (!odb_has_object(the_repository->objects, oid, 147 + HAS_OBJECT_RECHECK_PACKED)) 147 148 die_in_commit_graph_only(oid); 148 149 } 149 150 return commit;