title: Azure DevOps yaml pipeline : how to know which branch is being checked out?
body: <p>I currently have my yaml pipeline and my application's source code in two different branches and I was trying find evidence that what is being checked out is indeed the source code's branch and not my pipeline's branch but I see that the checkout call at the end of the git fetch is to a specific commit not to the specified branch name. This is my resources definition:</p>
  <pre><code>resources:
    repositories:
    - repository: RepoName
      type: git
      name: 'MyRepository'  # repository in Azure DevOps
      trigger:
        branches:
          include:
          - UAT
  </code></pre>
  <p>and in one of my steps I do a <code>checkout: RepoName</code>. I was expecting a <code>git checkout UAT</code> after pulling the source code but as said I see a checkout of a specific commit. How can I be sure about branch being checked out?</p>