Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeRemoteURL ¶
NormalizeRemoteURL normalizes a git remote URL into an explicit transport URL. It converts scp-style SSH remotes (git@host:path) to ssh://git@host/path. If no valid URI scheme is present, it prefixes the URL with https://. URLs with explicit valid schemes are preserved unchanged.
func NormalizeRepositoryURL ¶
NormalizeRepositoryURL normalizes a git remote URL for blueprint repository metadata. It returns host/path form (for example github.com/org/repo) when host and path can be derived from the input. It strips protocol, user info, leading/trailing slashes, and a trailing .git suffix from the path. If host/path cannot be derived, it falls back to NormalizeRemoteURL.
Types ¶
This section is empty.