fix commit get_parents for some git versions