Merge pull request #3526 from gsd-build/fix/3521-workflows-quick-md-two-bugs-in-post-merg

fix(quick): pin cleanup-loop CWD to project root before bare git commands (#3521)
This commit is contained in:
Tom Boucher
2026-05-14 19:57:45 -04:00
committed by GitHub
3 changed files with 216 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
type: Fixed
pr: 3526
---
**`/gsd-quick` worktree-merge cleanup loop no longer silently no-ops the main-branch merge when orchestrator CWD leaks into a worktree (#3521)** — the post-merge cleanup loop now resolves `PROJECT_ROOT` via `git -C "$WT" rev-parse --git-common-dir` and pins CWD with `cd "$PROJECT_ROOT"` at the top of each iteration body before any bare `git` command; iterations that cannot resolve the root log a skip message and continue safely.