Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeRemoteURL ¶
NormalizeRemoteURL returns a git remote URL with an explicit scheme. It changes an scp-style remote, git@host:path, to ssh://git@host/path. It adds https:// to a URL that has no valid scheme, and it keeps a URL that has one.
func NormalizeRepositoryURL ¶
NormalizeRepositoryURL returns a git remote URL in host/path form, such as github.com/org/repo. It removes the scheme, the user, the slashes at each end and a .git suffix. When it cannot find a host and a path, it returns the result of NormalizeRemoteURL.
Types ¶
This section is empty.