[FIXED JENKINS-19108]

JGit was not honoring the branch in the checkoutBranch method