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
Commit 0450f21
Browse filesBrowse the repository at this point in the historyBrowse files
A fresh GitHub-Actions runner that hasn't opted in to git 2.28+'s
default-branch rename creates the repo on `master`, but morph's
ref-mode contract treats `main` as canonical (it's what
`morph checkout`, `morph branch`, `morph push`, and the merge
breadcrumbs all assume). The mismatch surfaced as 20 spec failures
(spec_checkout_branch, spec_clone_with_explicit_branch_*, the entire
merge_* family) all reporting `pathspec 'main' did not match any
file(s) known to git` because the very first commit landed on
`master`.
Pass `-b main` (anchored to morph_core::DEFAULT_BRANCH, now exported
from the morph-core crate) so the initial branch matches morph's
contract regardless of host config. The error message on failure
also names the explicit invocation (`git init -b main <path>`) so
a reader of the failure output can reproduce it without guessing.
Verified 1187 / 1187 workspace tests pass under a simulated
CI environment (GIT_CONFIG_COUNT=1
GIT_CONFIG_KEY_0=init.defaultBranch
GIT_CONFIG_VALUE_0=master), and no regressions on hosts that
already default to `main`.
CHANGELOG.md, site/changelog.html, site/index.html, and
morph-cli/tests/specs/version.yaml all bumped to 0.42.2.
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments