Problem
Today, in the home view, when a user is on a branch in a worktree, we treat the default branch (eg main, master, etc) as any other branch and provide the "Switch to Branch..." action. Clicking this action causes the error "Unable to checkout 'main'. See output channel for more details.". In this case, that branch is actually on the default worktree, so if the user wanted to open the branch, they would have to use the "Open Worktree *" actions not Switch.
Problem
Today, in the home view, when a user is on a branch in a worktree, we treat the default branch (eg
main,master, etc) as any other branch and provide the "Switch to Branch..." action. Clicking this action causes the error "Unable to checkout 'main'. See output channel for more details.". In this case, that branch is actually on the default worktree, so if the user wanted to open the branch, they would have to use the "Open Worktree *" actions not Switch.