Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We observed a series of clone failures arose in a specific set of repositories after we fully enabled the MIDX bitmap feature within our Codebase service. These failures were accompanied with error messages such as: fatal: did not receive expected object ... fatal: fetch-pack: invalid index-pack output Temporarily disabling the MIDX feature eliminated the reported issues. After some investigation we found that all repositories experiencing failures containe replace references, which seem to be improperly acknowledged by the MIDX bitmap logic. Indeed, this issue appears to have persisted since the introduction of MIDX. This patch updates the MIDX logic to disable replace objects during operations, mirroring the handling seen in single pack index scenarios, ie git-index-pack and git-pack-objects. Signed-off-by: Xing Xin <xingxin.xx@bytedance.com>
- Loading branch information