Skip to content

setupGitSparseFixtureEntry

setupGitSparseFixtureEntry(entry, destination): Promise<void>

Defined in: git-sparse.ts:40

Fetches one git-hosted corpus by cloning nothing but the pinned commit’s object graph (--filter=blob:none) and checking out only the sparse paths that are actually needed, instead of the whole repository.

The checked-out .git metadata is only needed to produce the worktree above, not to consume the fixture, so it is removed once the checkout is verified.

GitSparseFixtureEntry

string

Promise<void>

When the checked-out HEAD does not match GitSparseFixtureEntry.commit — defense in depth on top of git’s own content-addressed verification of the fetched objects.