Description

TryMakeURI converts a repository clone URL, such as "git://github.com/user/repo.git", to a normalized URI string, such as "github.com/user/repo" lexically. TryMakeURI returns an error if cloneURL is empty or malformed.

The following forms are supported: - transport://... (http://foo.bar) - vcs:transport://... (hg:http://foo.bar) - 'scm':vcs:transport://... (scm:git:git://foo.bar) - [email protected]:path (assumed SSH) - host:path (assumed SSH)

TryMakeURI is referenced in 4 repositories

github.com/sourcegraph/srclib sourcegraph.com/sourcegraph/srclib sourcegraph/srclib

...