mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-25 15:24:58 +00:00
fix(opencode): address migration review feedback
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user