Skip to content

Instantly share code, notes, and snippets.

@jleechan2015
Created April 2, 2026 07:26
Show Gist options
  • Select an option

  • Save jleechan2015/82fd998f4675c7e3c6535bb5507fe708 to your computer and use it in GitHub Desktop.

Select an option

Save jleechan2015/82fd998f4675c7e3c6535bb5507fe708 to your computer and use it in GitHub Desktop.

bd-d0la — worktree phase-2 repro

Context

findRepoPathForWorktree phase-2 scans git worktree list from the workspace path upward to / when phase-1 does not find a .git directory (gitfile worktrees).

Verify locally

pnpm --filter @jleechanorg/ao-core exec vitest run src/__tests__/worktree-git.test.ts

Expected: all tests pass, including “phase-2 runs when cwd is /”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment