paint_down_to_common(): parse commit before relying on its timestamp