Steps to reproduce :
- user A creates a new branch
- user B lists the branches
- user B tries to merge the newly created branch without checking it out
==> an error is thrown
This is probably due to the fact that the branch has no reference on the local repository (it's only referenced as a remote branch).