sha1_file: convert read_sha1_file to struct object_id