Skip to content

Commit 5944443

Browse files
committed
core: fix dependency installation and git worktree branch creation
1 parent 81e8d29 commit 5944443

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/opencode/src/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export namespace Config {
162162
})
163163

164164
async function installDependencies(dir: string) {
165-
if (Installation.isLocal()) return
165+
// if (Installation.isLocal()) return
166166

167167
const pkg = path.join(dir, "package.json")
168168

packages/opencode/src/worktree/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,10 @@ export namespace Worktree {
195195
const base = input?.name ? slug(input.name) : ""
196196
const info = await candidate(root, base || undefined)
197197

198-
const created = await $`git worktree add -b ${info.branch} ${info.directory}`.nothrow().cwd(Instance.worktree)
198+
const created = await $`git worktree add -b ${info.branch} ${info.directory}`
199+
.quiet()
200+
.nothrow()
201+
.cwd(Instance.worktree)
199202
if (created.exitCode !== 0) {
200203
throw new CreateFailedError({ message: errorText(created) || "Failed to create git worktree" })
201204
}

0 commit comments

Comments
 (0)