You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bundle transport fails with 'refusing to merge unrelated histories' in shallow checkout #31345
The bundle transport for push_to_pull_request_branch (#30287) fails in the safe_outputs job because the job uses a shallow checkout (fetch-depth: 1). When git merge --ff-only tries to merge the bundle ref into the local branch, git refuses because the shallow clone doesn't have enough history to find a common ancestor.
[command]/usr/bin/git merge --ff-only refs/bundles/push-autoloop-build-tsb-pandas-typescript-migration
fatal: refusing to merge unrelated histories
##[error]Failed to apply bundle: The process '/usr/bin/git' failed with exit code 128
Activity
mrjf commentedon May 11, 2026
#31346 fixed the
git merge --ff-onlystep but the failure now happens earlier — atgit fetch <bundle>itself:The bundle references parent commits that the depth-1 clone doesn't have. The fix needs to either:
git fetch --unshallowbefore fetching the bundle--allor include the full history needed)Example run (v0.74.0 deployed, #31346 included): https://github.com/githubnext/tsessebe/actions/runs/25702866515