Options to use when cloning a git repository.

The URL of the repository to clone.

The directory where the repository will be cloned.

A function that will be called with the progress of the clone.

Whether to clone the repository shallowly.

Whether to clone the latest tag instead of the default branch.

interface GitCloneOptions {
    destination: string;
    latestTag?: boolean;
    progressUpdater?: (statusString: string) => void;
    repoUrl: string;
    shallow?: boolean;
}

Properties

destination: string
latestTag?: boolean
progressUpdater?: (statusString: string) => void
repoUrl: string
shallow?: boolean