Skip to main content

resolve_endpoint

Function resolve_endpoint 

Source
pub fn resolve_endpoint(
    cwd: &Path,
    remote: Option<&str>,
) -> Result<EndpointInfo, EndpointError>
Expand description

Like endpoint_for_remote, but also returns the SSH metadata when the underlying URL was SSH-shaped. Used by git lfs env to render the SSH=<user_and_host>:<path> line alongside the HTTPS-equivalent endpoint.