opencode-agent[bot] 2 mesi fa
parent
commit
9c37286732
1 ha cambiato i file con 10 aggiunte e 12 eliminazioni
  1. 10 12
      packages/core/src/repository-cache.ts

+ 10 - 12
packages/core/src/repository-cache.ts

@@ -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,