Commit f0261a4
fix(shell): replace Effect.catchAll with Effect.orElse and abort rebase on pull failure
- Replace Effect.catchAll with Effect.orElse in state-repo.ts and pull-push.ts
to comply with no-restricted-syntax lint rule that forbids catchAll
- Add Effect.tapError in autoPullState to run git rebase --abort when pull fails,
preventing conflict markers from being left in the working tree when
git pull --rebase encounters merge commits in the local history
INVARIANT: ∀ pull_failure ∈ RebaseFailures: rebase_aborted(failure) → clean_working_tree(root)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent fe0a8f9 commit f0261a4
File tree
2 files changed
+11
-3
lines changed- packages/lib/src/usecases
- state-repo
2 files changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
165 | 173 | | |
166 | 174 | | |
167 | 175 | | |
| |||
195 | 203 | | |
196 | 204 | | |
197 | 205 | | |
198 | | - | |
| 206 | + | |
199 | 207 | | |
200 | 208 | | |
201 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments