merge-steward 0.8.7 → 0.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78,7 +78,10 @@ export class ShellGitOperations {
78
78
  mkdirSync(this.worktreeBase, { recursive: true });
79
79
  await this.git(["worktree", "add", "-B", specName, wtPath, baseBranch]);
80
80
  // Merge PR into spec branch inside the worktree.
81
- const result = await this.gitIn(wtPath, ["merge", "--no-ff", prBranch], { allowNonZero: true });
81
+ // PR branches are always remote refs — use explicit origin/ prefix
82
+ // because git DWIM doesn't reliably resolve bare names in worktrees.
83
+ const mergeRef = prBranch.startsWith("origin/") ? prBranch : `origin/${prBranch}`;
84
+ const result = await this.gitIn(wtPath, ["merge", "--no-ff", mergeRef], { allowNonZero: true });
82
85
  if (result.exitCode !== 0) {
83
86
  const conflictFiles = parseConflicts(result.stderr);
84
87
  // Lockfile-only conflicts can be auto-resolved by regenerating.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merge-steward",
3
- "version": "0.8.7",
3
+ "version": "0.8.8",
4
4
  "description": "Serial merge queue for GitHub — rebase, CI-gate, and merge PRs one at a time",
5
5
  "type": "module",
6
6
  "repository": {