Detect bare repos by checking if git-common-dir basename ends with .git (excluding .git itself). This ensures both the worktree field in the database and the cache location are correct for bare-repo-backed worktrees. |
||
|---|---|---|
| .. | ||
| migrate-global.test.ts | ||
| project.test.ts | ||
| vcs.test.ts | ||
| worktree-remove.test.ts | ||
| worktree.test.ts | ||