mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-09 21:58:28 +00:00
chore: generate
This commit is contained in:
parent
fcfd47602b
commit
9c37286732
1 changed files with 10 additions and 12 deletions
|
|
@ -197,18 +197,16 @@ export const layer: Layer.Layer<
|
|||
})
|
||||
}
|
||||
|
||||
const checkout = yield* git
|
||||
.checkout(localPath, requestedBranch)
|
||||
.pipe(
|
||||
Effect.mapError(
|
||||
(error) =>
|
||||
new CheckoutFailedError({
|
||||
repository,
|
||||
branch: requestedBranch,
|
||||
message: errorMessage(error),
|
||||
}),
|
||||
),
|
||||
)
|
||||
const checkout = yield* git.checkout(localPath, requestedBranch).pipe(
|
||||
Effect.mapError(
|
||||
(error) =>
|
||||
new CheckoutFailedError({
|
||||
repository,
|
||||
branch: requestedBranch,
|
||||
message: errorMessage(error),
|
||||
}),
|
||||
),
|
||||
)
|
||||
if (checkout.exitCode !== 0) {
|
||||
return yield* new CheckoutFailedError({
|
||||
repository,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue