MCPcopy Index your code
hub / github.com/anomalyco/opencode / initRepo

Function initRepo

packages/core/test/project-copy.test.ts:30–37  ·  view source on GitHub ↗
(directory: string)

Source from the content-addressed store, hash-verified

28const gitWorktree = ProjectCopy.StrategyID.make("git_worktree")
29
30async function initRepo(directory: string) {
31 await $`git init`.cwd(directory).quiet()
32 await $`git config core.fsmonitor false`.cwd(directory).quiet()
33 await $`git config commit.gpgsign false`.cwd(directory).quiet()
34 await $`git config user.email test@opencode.test`.cwd(directory).quiet()
35 await $`git config user.name Test`.cwd(directory).quiet()
36 await $`git commit --allow-empty -m root`.cwd(directory).quiet()
37}
38
39function setup() {
40 return Effect.gen(function* () {

Callers 1

setupFunction · 0.70

Calls 2

quietMethod · 0.80
cwdMethod · 0.65

Tested by

no test coverage detected