Commit 3621007
endolinbot
journal-worktree-keeper: rebuild a genuinely ABSENT journal/ checkout instead of skipping forever
jw_repair_gitdir began with '[ -d $jw ] || return 0', declaring a deleted
journal/ dir healthy — the rebuild-from-origin fallback its own comments
promise for exactly this case was unreachable, and the keeper WARN-skipped
'missing or unlinked … skipping' every tick indefinitely. A missing dir now
routes straight to jw_rebuild_dangling_worktree, whose existing hard guards
(canonical-path-only, owning-repo-with-origin, no-writer probe skipped when
the dir is absent) already cover the absent-dir shape.
journal-worktree-keeper-test + journal-worktree-relink-test: pass.1 parent 36e1477 commit 3621007
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
307 | 317 | | |
308 | 318 | | |
309 | 319 | | |
| |||
0 commit comments