Function cargo::sources::git::fetch

source ·
pub fn fetch(
    repo: &mut Repository,
    orig_url: &str,
    reference: &GitReference,
    config: &Config,
    remote_kind: RemoteKind
) -> CargoResult<()>
Expand description

Note that history is a complex computed value to determine whether it’s acceptable to perform shallow clones at all. It’s needed to allow the caller to determine the correct position of the destination repository or move it into place should its position change.