Skip to main content

fetch_remote

Function fetch_remote 

Source
pub fn fetch_remote(repo: &Repository, remote_name: &str) -> Result<()>
Expand description

Fetch from a remote by name.

This works for public repositories. Repositories requiring authentication will return an error — callers should handle auth setup via git2 callbacks or credential helpers.