simplify gitHash method