Switched GitBranch function to use `git rev-parse`.