Checkout branch name for tagged builds


For tagged builds, branch name is not correctly checked out. For example, if my default branch is master and I am working on a feature branch called new_feature. When I tag my a commit in my new_feature branch and push it, CircleCI will check out tagged commit but the branch name is master, rather than new_feature.

Sample circle.yml for tagged builds:

     tag: /deploy-.*/
     owner: xxxx
        - ./infrastructure/