The open source coding agent.
TypeScript
core: fix dependency installation and git worktree branch creation
Dax Raad5944443a60f2
diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.tsindex f62581db369..fb9d293a143 100644--- a/packages/opencode/src/config/config.ts+++ b/packages/opencode/src/config/config.ts@@ -162,7 +162,7 @@ export namespace Config {})async function installDependencies(dir: string) {- if (Installation.isLocal()) return+ // if (Installation.isLocal()) returnconst pkg = path.join(dir, "package.json")diff --git a/packages/opencode/src/worktree/index.ts b/packages/opencode/src/worktree/index.tsindex 0c05feb17a9..ba3017f4cf7 100644--- a/packages/opencode/src/worktree/index.ts+++ b/packages/opencode/src/worktree/index.ts@@ -195,7 +195,10 @@ export namespace Worktree {const base = input?.name ? slug(input.name) : ""const info = await candidate(root, base || undefined)- const created = await $`git worktree add -b ${info.branch} ${info.directory}`.nothrow().cwd(Instance.worktree)+ const created = await $`git worktree add -b ${info.branch} ${info.directory}`+ .quiet()+ .nothrow()+ .cwd(Instance.worktree)if (created.exitCode !== 0) {throw new CreateFailedError({ message: errorText(created) || "Failed to create git worktree" })}