adjust git current branch function to match new v of git