Convert lookup_commit* to struct object_id