Revert "Refactor git_current_branch to use git describe"

This reverts commit bee48ff861624c411703872317881b113f3e953b.

The refactored way of doing it meant when going from one branch to another with the same revision for HEAD, the returned name wasn't updated.