Function git_transport::client::git::connect
source · pub fn connect(
host: &str,
path: BString,
desired_version: Protocol,
port: Option<u16>
) -> Result<Connection<TcpStream, TcpStream>, Error>
Available on crate feature
blocking-client
and (crate features blocking-client
or async-client
) only.Expand description
Connect to a git daemon running on host
and optionally port
and a repository at path
.
Use desired_version
to specify a preferred protocol to use, knowing that it can be downgraded by a server not supporting it.