Skip to main content

get_remote_web_url

Function get_remote_web_url 

Source
pub fn get_remote_web_url(
    repo: &ReadonlyRepo,
    remote_name: &str,
) -> Option<String>
Expand description

Returns the web URL for a git remote.

Attempts to convert the remote’s URL to an HTTPS web URL. Returns None if the remote doesn’t exist or its URL cannot be converted.