Documentation for Simbo's Packages
    Preparing search index...

    Function cloneGitFixture

    • Clones a repository into a temporary directory with the same neutral configuration as createGitFixture().

      The source is passed to Git as given. Pass untrusted values neither as source nor in args: options such as --upload-pack make Git run commands.

      Parameters

      • source: string

        The path or URL of the repository to clone.

      • options: CloneGitFixtureOptions = {}

        Options for the clone.

      Returns Promise<GitFixture>

      The fixture of the clone.

      if Git fails; the directory is removed then.