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

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

This includes connections to [local repositories][crate::client::file::connect()], [repositories over ssh][crate::client::ssh::connect()], [git daemons][crate::client::git::connect()], and if compiled in connections to [git repositories over https][crate::client::http::connect()].

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