Steps to reproduce :
- user A creates a new branch
- user B lists the branches available, the new branch appears in the list
- user B tries to delete the branch without doing any checkout on it
==> 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).