pub fn derive_lfs_url(remote_url: &str) -> Result<String, EndpointError>Expand description
Convert a clone URL into the matching LFS endpoint URL.
Rules (mirroring upstream’s NewEndpointFromCloneURL):
https://host/path→https://host/path.git/info/lfshttps://host/path.git→https://host/path.git/info/lfsssh://[user@]host[:port]/path→https://host/path.git/info/lfs(port is dropped — LFS is HTTPS-only at the wire layer)git@host:path→https://host/path.git/info/lfsgit://host/path→https://host/path.git/info/lfsfile://path→ returned unchanged (used by upstream test infra)