pub fn connect(
    url: &[u8],
    desired_version: Protocol
) -> Result<Box<dyn Transport + Send>, Error>
Expand description

A general purpose connector connecting to a repository identified by the given url.

This includes connections to local repositories, repositories over ssh, git daemons, and if compiled in connections to git repositories over https.

Use desired_version to set the desired protocol version to use when connecting, but not that the server may downgrade it.