Don't send ref/heads/master as a branch

The heads returned from self._getBranches has a ``ref/heads/`` prefix. Make sure this is stripped before processing it.

I don't have an environment to test this in. Perhaps a better place is to call self._removeHeads(branch) as part of the call to self.master.addChange()