Skip to main content

shallow_clone

Function shallow_clone 

Source
pub fn shallow_clone(
    url: &str,
    git_ref: Option<&str>,
    dir_name: &str,
    dest: &Path,
) -> Result<PathBuf>
Expand description

Shallow-clone a git repository into dest/<dir_name>.

Passes GIT_LFS_SKIP_SMUDGE=0 so LFS pointers are smudged automatically when git-lfs is available.