diff --git a/src/core/git.ts b/src/core/git.ts index a2f9840..f4c595c 100644 --- a/src/core/git.ts +++ b/src/core/git.ts @@ -9,7 +9,7 @@ import { Package } from './Package' export const git = { clone(cwd: string, repo: RepoConfig, path: string) { if (repo.head?.includes(':')) { - const [head, subpath] = repo.head!.split(':') + const [head, subpath] = repo.head.split(':') return sparseClone(join(cwd, path), repo.url, head, subpath) } return exec(