Repository navigation
Commit 6ee6d04
committed
fix(checkpoints): surface unreadable checkpoint trees instead of deleting live files
fileExistsInCommit read any cat-file -e failure as "file absent", so a
shadow repo whose commit object resolves but whose tree object is
corrupt or missing routed restoreFile into the delete branch and rm'd
a live file the checkpoint does contain. Existence now uses ls-tree:
an empty successful result is genuine absence, while a command
failure propagates and fails the restore loudly. The :(literal)
pathspec magic keeps paths containing glob characters exact (also
applied to the mode check). Regression test corrupts the checkpoint
tree object and pins both the rejection and the surviving file.
Review feedback on PR 1412; owned by PR 1410's service and byte-copied
to the sibling unit carrying the identical file.1 parent e4fe6ba commit 6ee6d04
3 files changed
Lines changed: 31 additions & 8 deletions
File tree
- src/services/checkpoints
- __tests__
- webview-ui/src/i18n/locales/ru
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
| 508 | + | |
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
553 | 556 | | |
554 | 557 | | |
555 | 558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
263 | 283 | | |
264 | 284 | | |
265 | 285 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments