simplify gitbranchname()