Gets the sha of a given branch on the repo