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
Fix nested worktree issue: use git-common-dir for main repo resolution (#89)
Add getMainRepoRoot() that uses git rev-parse --git-common-dir to find
the main repository root even when called from inside a worktree. This
fixes createWorktree, removeWorktree, and cleanupBranches which previously
used getRepoRoot() that returns the worktree path, not the main repo.
Fixes the root cause of test failures during dogfooding — tests can now
create worktrees from inside agent worktrees because git operations target
the main repo.
Generated by thinktank with Opus (5 agents, Agent #5 recommended — fixed
root cause instead of skipping tests).
Closes#86
Co-authored-by: unknown <that-github-user@github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments