MCPcopy
hub / github.com/coder/mux / initGitRepo

Function initGitRepo

src/node/multiProject/gitRootDiscovery.test.ts:16–18  ·  view source on GitHub ↗
(repoPath: string)

Source from the content-addressed store, hash-verified

14}
15
16function initGitRepo(repoPath: string): void {
17 execSync("git init", { cwd: repoPath, stdio: "ignore" });
18}
19
20function sortPaths(paths: readonly string[]): string[] {
21 return [...paths].sort((left, right) => left.localeCompare(right));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected