You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored and
Jammy2211
committed
mind_commit_guard v1.2: honour a leading cd away from Mind (fix false positive)
v1.1 keyed is-this-a-Mind-commit off the ambient cwd the hook is handed. A
command that cd s into a PyAutoBuild worktree before committing (with the
session cwd still PyAutoMind from a prior command) was wrongly denied — it bit
its own author committing PyAutoBuild#165 step 3. check_command now walks
clauses tracking the effective cwd, resolves each commit target repo (git -C
wins, else effective cwd), and guards ONLY when that repo is a PyAutoMind
checkout. Dead _mind_root/re removed. Four regression tests pin the cd-away and
git -C-away allows plus the cd-into / -C-into denies.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments