Commit bbc8a77
fix: skip empty v1 orphan seed under git-refs backend
`entire enable` selecting the git-refs checkpoint backend still created an
empty `entire/checkpoints/v1` branch. The enable-time seed step
(EnsureSetup -> EnsurePrimaryRef) resolves the target ref via the hardcoded
checkpoint.ResolveRefs (always v1) and never consults the configured backend,
so on a freshly git-init'd folder with no origin it unconditionally created a
vestigial empty orphan v1 that git-refs never writes to.
Gate the empty-orphan fallback in EnsurePrimaryRef on the primary backend:
under git-refs, skip creating the orphan. Adoption of real existing v1 data
from origin or a checkpoint_remote is preserved so legacy checkpoints stay
readable. Resolution is fail-soft — a config-load error keeps the legacy
git-branch seeding behavior.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 01KY223K2WZPQN3GGTQK15MJX81 parent b2cf7f6 commit bbc8a77
2 files changed
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
467 | 478 | | |
468 | 479 | | |
469 | 480 | | |
| |||
477 | 488 | | |
478 | 489 | | |
479 | 490 | | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
480 | 502 | | |
481 | 503 | | |
482 | 504 | | |
| |||
515 | 537 | | |
516 | 538 | | |
517 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
518 | 543 | | |
519 | 544 | | |
520 | 545 | | |
| |||
565 | 590 | | |
566 | 591 | | |
567 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
568 | 596 | | |
569 | 597 | | |
570 | 598 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
988 | 988 | | |
989 | 989 | | |
990 | 990 | | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
991 | 1023 | | |
992 | 1024 | | |
993 | 1025 | | |
| |||
0 commit comments