forked from cflmy/deepseek-harness
The pre-merge step fetches blobless history, so a missing blob is fetched from origin on demand. Within one `git merge` process, Git's cache of loose-object directories does not see the merged blobs the merge writes; the checkout prefetch then asks origin for those blobs, origin refuses the whole request with "not our ref", and the step reported a clean pull request as unmergeable. The step now computes the merged tree with `git merge-tree --write-tree`, commits it with `git commit-tree`, and checks it out in a separate process, and reports conflicts apart from other merge failures. Fixes #8655