pub async fn repo_url(repo_path: PathBuf) -> Result<String, GitError>Expand description
Re-exported repository metadata APIs. Returns the origin repository URL normalized to HTTPS form when possible.
§Arguments
repo_path- Path to a git repository or worktree
§Returns
Ok(url) on success, Err(GitError) on failure.
§Errors
Returns an error if the remote URL cannot be read via git remote get-url.