Skip to content

fix(#1486): new-feature.sh cuts a new branch from the base when origin/<branch> already exists — #1405's fix never reached the script - #1495

Merged
admarble merged 4 commits into
mainfrom
feature/1486-fix-worktree-new-feature-sh-cuts-a-new-branch-from
Oct 17, 2026
Merged

admarble merged 4 commits into
mainfrom
feature/1486-fix-worktree-new-feature-sh-cuts-a-new-branch-from

Conversation

@admarble

@admarble admarble commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Automated PR for issue #1486.

Fixes #1486

QA verdict: NEEDS_VERIFICATION — acceptance criteria met, pending external verification (e.g. CI or a manual test). See the QA review comment.


🤖 Generated by sequant run

Verification and mutation record (runner, after QA)

QA returned NEEDS_VERIFICATION because the disk filled during its pass. The runner ran every Evidence command exactly as written on d84eeac:

  • AC-1: 1 passed. The test checks HEAD, branch.<name>.remote and .merge, and sequantBase.
  • AC-2 (parity): 5 passed. The German-locale case ran on this machine, but it skips where git has no German locale.
  • AC-3: 1 passed. new-feature-worktree-root and new-feature-checkout-guard: 7 passed.
  • AC-4: the origin/<branch> line is under ### Script Usage.
  • I-1: the freeze grep prints nothing.

The "local branch exists, no worktree" divergence that QA raised is filed as #1491. The bash fetch has no timeout, unlike the 30-second TS fetch; QA rated this minor, and it is left as is.

Mutation-verified: AC-1 — made resolve_branch_start_ref always print the base ref; the AC-1 test and the unmerged parity case failed (2 failed, 5 passed); restored.

Mutation-verified: AC-2 — disabled the squash-merge tree comparison in resolve_branch_start_ref; exactly the squash-merged parity case failed (1 failed, 6 passed); restored.

…the remote has it

Port resolveBranchStartRef to the script, add --print-start-ref, parity tests, docs and changelog.

Entire-Checkpoint: bf03739040f8
Entire-Checkpoint: eab2a5b9f8ee
@admarble
admarble merged commit 8534033 into main Oct 17, 2026
8 checks passed
@admarble
admarble deleted the feature/1486-fix-worktree-new-feature-sh-cuts-a-new-branch-from branch October 18, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(worktree): new-feature.sh cuts a new branch from the base when origin/<branch> already exists — #1405's fix never reached the script

1 participant