MCPcopy Create free account
hub / github.com/Tencent/teamai-cli / cloneRepo

Method cloneRepo

src/providers/gitcode/index.ts:91–100  ·  view source on GitHub ↗
(repo: string, localPath: string)

Source from the content-addressed store, hash-verified

89 }
90
91 cloneRepo(repo: string, localPath: string): void {
92 try {
93 gitcodeRepoClone(repo, localPath);
94 } catch (e) {
95 if (e instanceof GitCodeRepoNotFoundError) {
96 throw new RepoNotFoundError(repo);
97 }
98 throw e;
99 }
100 }
101
102 async createRepo(owner: string, repo: string): Promise<void> {
103 await gitcodeCreateRepo(owner, repo);

Callers

nothing calls this directly

Calls 1

gitcodeRepoCloneFunction · 0.85

Tested by

no test coverage detected