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
{{ message }}
Repository navigation
Commit 6404fc1
Browse filesBrowse the repository at this point in the historyBrowse files
Match worktrees by their gitdir tail, ignore blank --home-dir
The `.git/worktrees` segment check rejected worktrees whose common dir is
not named `.git`. A worktree of a bare repo points at
`<repo>.git/worktrees/<name>`, and $GIT_COMMON_DIR can be anything. Git
always uses the `worktrees/<name>` tail, so match on that instead;
`<git-dir>/modules/<name>` still fails it.
A blank `--home-dir` also counted as a selection under `??`, skipping the
worktree default and landing on the shared home — the outcome this
precedence exists to prevent. Trim before choosing.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
0 commit comments