Scope branch checkout effect during auto branch creation
- Wrap checkout in `Effect.scoped` when creating a new feature branch - Align branch switch lifecycle with scoped effect handling
This commit is contained in:
1 parent
61289a152d
commit
c884947ea8
1 file changed
+1
-1
@@ -451,7 +451,7 @@ export const makeGitManager = Effect.gen(function* () {
|
||||
const resolvedBranch = resolveAutoFeatureBranchName(existingBranchNames, preferredBranch);
|
||||
|
||||
yield* gitCore.createBranch({ cwd, branch: resolvedBranch });
|
||||
yield* gitCore.checkoutBranch({ cwd, branch: resolvedBranch });
|
||||
yield* Effect.scoped(gitCore.checkoutBranch({ cwd, branch: resolvedBranch }));
|
||||
|
||||
return {
|
||||
branchStep: { status: "created" as const, name: resolvedBranch },
|
||||
|
||||
Reference in new issue
Block a user