updated parse_git_branch()