Getting the branch name right