Options to use when cloning a git repository.

Param: repoUrl

The URL of the repository to clone.

Param: destination

The directory where the repository will be cloned.

Param: progressUpdater

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

Param: shallow

Whether to clone the repository shallowly.

Param: latestTag

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

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

Properties

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

Type declaration

    • (statusString): void
    • Parameters

      • statusString: string

      Returns void

repoUrl: string
shallow?: boolean