Commit b73e16c
committed
Fix: wrap provider resolution in Effect pipeline so fallback to 'main' is reachable
The inner `yield* sourceControlProvider(cwd)` could fail before
`.getDefaultBranch()` was called, bypassing the Effect.catch handler
and preventing the graceful fallback to "main". By piping the provider
resolution through Effect.flatMap and wrapping the entire chain with
Effect.catch, both provider-resolution failures and getDefaultBranch
failures now correctly fall through to the "main" default.1 parent ec55eef commit b73e16c
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1045 | 1045 | | |
1046 | 1046 | | |
1047 | 1047 | | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1051 | 1052 | | |
1052 | 1053 | | |
1053 | 1054 | | |
| |||
0 commit comments