Skip to main content

fetch_git_source

Function fetch_git_source 

Source
pub fn fetch_git_source(
    git_src: &GitSource,
    cache_base: &Path,
    module_name: &str,
    printer: &Printer,
) -> Result<PathBuf>
Expand description

Clone or fetch a git source to the cache, returning the local path.

If the repo is already cached, fetches updates. Otherwise, clones. Checks out the specified tag/ref if provided.