Skip to main content

remote_head

Function remote_head 

Source
pub async fn remote_head(
    repo: &Path,
    remote: &str,
    branch: &str,
) -> Result<Option<String>>
Expand description

Read a remote head without moving a tracking ref. Unreadable is an error.