get_repo_urls

Function get_repo_urls 

Source
pub fn get_repo_urls(repo_path: &Path) -> Result<Vec<Url>>
Expand description

Returns all GitHub remote URLs for the repository rooted at repo_path.

Filters remotes to those that parse as GitHub URLs.

ยงErrors

  • The repository cannot be opened.
  • A remote cannot be resolved.
  • A remote URL is invalid UTF-8.