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
If a developer opens up a pull request that another wishes to load into their local instance, "Check out existing branch" on its own will fail with the error "Selected branch does not exist". While SourceControl.Git.Utils.SwitchBranch() does check the list of remote branches (git branch -a) before attempting the check out, the local list could be stale.
A work around is possible by first running the "Fetch from Remote" menu item because that action currently fetches all remote branches, not just the checked out branch.
To avoid this potentially confusing scenario, I think SwitchBranch() should should be updated to run git fetch --prune before running git branch -a