fix(opencode): address migration review feedback

This commit is contained in:
Dax Raad
2026-03-06 01:25:04 -05:00
parent f1c7d4cefb
commit 3b2e3afebd
2 changed files with 16 additions and 11 deletions

View File

@@ -497,18 +497,14 @@ export const GithubRunCommand = cmd({
const gitText = async (args: string[]) => {
const result = await git(args, { cwd: Instance.worktree })
if (result.exitCode !== 0) {
throw new Error(
result.stderr.toString().trim() || result.stdout.toString().trim() || `git ${args.join(" ")} failed`,
)
throw new Process.RunFailedError(["git", ...args], result.exitCode, result.stdout, result.stderr)
}
return result.text().trim()
}
const gitRun = async (args: string[]) => {
const result = await git(args, { cwd: Instance.worktree })
if (result.exitCode !== 0) {
throw new Error(
result.stderr.toString().trim() || result.stdout.toString().trim() || `git ${args.join(" ")} failed`,
)
throw new Process.RunFailedError(["git", ...args], result.exitCode, result.stdout, result.stderr)
}
return result
}