Correct the branch checkout to allow checking out a tag.