Creating a branch from the UI uses the recently used repositories list to decide what project/repo to offer for the branch creation. When creating multiple branches in different repositories using different browser tabs or windows, it is possible that the repository shown is not the one intended for creating the branch (and then the branch would be created in the wrong repository).
- Open Bitbucket and sign in with the same username on two tabs (or in two different browser windows, or in two different browsers, the key is to be signed in as the same user)
- In tab 1, browse to Project A, Repository 1
- In tab 2, bowser to Project B, Repository 2
- In tab 1, click Create Branch | create a branch called feature/test
- in tab 2, click Create Branch | create a branch called feature/test
You will get an error that the branch already exists. Closer examination of the create branch dialog in tab 2 will show that Project A, Repository 1 was selected not Project B, Repository 2 as expected.
The correct project and repository should be default
The recently used repositories list is used when determining what repository to use for creating the branch, so the incorrect project / repository can be presented as the defaults
If you press refresh on the source view of Tab 2 before clicking "Create Branch" the correct Project and Repository are selected.