fix: gardener-run.sh uses manual worktree setup instead of formula_worktree_setup() #281
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#281
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
gardener/gardener-run.sh lines 130-138 manually does git fetch, worktree_cleanup, git worktree add, and sets its own trap cleanup EXIT. All other *-run.sh scripts (planner, architect, predictor, supervisor) use the shared formula_worktree_setup() helper.
The manual approach also hardcodes 'origin' instead of using FORGE_REMOTE.
Fix
Replace the manual worktree block (lines 130-138) with a call to formula_worktree_setup "$WORKTREE". Remove the custom cleanup() function and trap since formula_worktree_setup sets its own cleanup trap.
Affected files
Acceptance criteria