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.