Skip to main content

remote_url

Function remote_url 

Source
pub fn remote_url(cwd: &Path, remote: &str) -> Result<Option<String>, Error>
Expand description

Read remote.<name>.url from the merged git config view (any scope, plus include.path and GIT_CONFIG resolution).

We don’t currently honor remote.<name>.pushurl separately — that’s a minor accuracy issue for git push-driven LFS uploads, captured in NOTES.md.