Add ensureCorrectGitBranch