Sourcetree allows you to create a branch name containing invalid characters according to https://git-scm.com/docs/git-check-ref-format.
Specifically in my case, you can create a branch containing single quote. This can be successfully pushed to Bitbucket, but Sourcetree for Mac will refuse to pull it down because of the invalid characters.
I understand this is because of https://jira.atlassian.com/browse/SRCTREE-5576, but Sourcetree for Windows should be following the same guidelines.
Note: I've added this here because there seems to be no way to actually raise a bug with Atlassian. Hopefully this gets to where it needs to go.