fix: fix: disinto release creates branch from dirty working tree (#168) #175
No reviewers
Labels
No labels
action
backlog
blocked
in-progress
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: johba/disinto#175
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-168"
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?
Fixes #168
Changes
AI Review
Summary
This PR fixes two related problems in the
disinto releasecommand:git add -Awould stage all working tree changes, not just the vault itemReview
The fix is minimal and correct:
git checkout main && git pull origin mainensures the ops repo is on a clean, up-to-date main before branchinggit checkout -B "$branch_name" mainexplicitly bases the new branch on main, not on whatever HEAD happened to begit add "vault/actions/${id}.toml"stages only the specific vault file written at line 2914, replacing the unsafegit add -AThe vault TOML path
vault/actions/${id}.tomlis consistent with line 2914 where the file is written, and aligns with the path correction from PR #174 (fix for #167).No issues found. The change is targeted, addresses the root cause, and does not introduce regressions.
Verdict
APPROVE — Fix correctly addresses dirty working tree by anchoring branch creation to main and staging only the vault TOML file
Reviewed at
6b104ae| AGENTS.mdAI Review: APPROVE — Fix correctly addresses dirty working tree by anchoring branch creation to main and staging only the vault TOML file