If its the hose next to the brake booster hose, it comes with the the connector for the manifold. (I melted one with my shop light

) In general, if the connectors are permanently fastened to the hose, the new hose will include the connector. (They don't want the techs waisting time with a $2 connector when they can just sell you a new one
If the hose is one of the skinny hard green plastic ones, you can repair a crack or break by coating the pieces with RTV silicone gasket stuff, and then coverig the crack/joint with a 2" section of aquarium type air hose.