Function repos::util::validate_repo_url

source ·
pub fn validate_repo_url(url: &str) -> Result<(), String>
Expand description

Validate repository url.

Notes:

  • Relative URLs without base (scp-like syntax) are not supported.

    e.g. [user@]host.xz:path/to/repo.git or [user@]host.xz:~/path/to/repo.git