summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2026-01-03 20:22:19 -0500
committerDax Raad <[email protected]>2026-01-03 20:22:19 -0500
commit5944443a60f297370f26bab0f8a8356d201e3fc5 (patch)
tree81fa85676c43168cb0f56c2ce33b4aebcc56e68c
parent81e8d29ad25661c05dcefdc03c264a03872d25df (diff)
downloadopencode-5944443a60f297370f26bab0f8a8356d201e3fc5.tar.gz
opencode-5944443a60f297370f26bab0f8a8356d201e3fc5.zip
core: fix dependency installation and git worktree branch creation
-rw-r--r--packages/opencode/src/config/config.ts2
-rw-r--r--packages/opencode/src/worktree/index.ts5
2 files changed, 5 insertions, 2 deletions
diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.ts
index f62581db3..fb9d293a1 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()) return
const pkg = path.join(dir, "package.json")
diff --git a/packages/opencode/src/worktree/index.ts b/packages/opencode/src/worktree/index.ts
index 0c05feb17..ba3017f4c 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" })
}