Skip to content

cloneRepo

cloneRepo(url, name, repoRoot): { entry: RepoEntry; ok: true; } | { error: string; ok: false; }

Defined in: src/repos.ts:129

Clone a remote (or local) git repository into <repoRoot>/<name>. Returns { ok: true, entry } on success, or { ok: false, error } with one of: clonerepo_failed_outside, clonerepo_failed_exists, or a code from classifyCloneError.

string

string

string

{ entry: RepoEntry; ok: true; } | { error: string; ok: false; }