Mechanism of a cytosolic O-glycosyltransferase essential for the synthesis of a bacterial adhesion protein.