Phase 6e hotfix: refs path #82

Merged
osobh merged 1 commits from phase-6e-fix-refs-path into main 2026-07-14 19:44:47 +00:00
+6 -2
View File
@@ -750,8 +750,12 @@ fn main() -> Result<()> {
let tag_dir = cli.data_dir.join("tags-db");
let tags = TagStore::open(tag_dir.clone())
.with_context(|| format!("opening tag store at {}", tag_dir.display()))?;
let refs = RefStore::open(cli.data_dir.clone())
.with_context(|| format!("opening ref store at {}", cli.data_dir.display()))?;
// Ref store lives at <blob_root>/refs-db/ — same nested convention
// the daemon uses in services.rs. Passing cli.data_dir directly
// would land at the wrong path and return empty listings.
let refs_dir = cli.data_dir.join("refs-db");
let refs = RefStore::open(refs_dir.clone())
.with_context(|| format!("opening ref store at {}", refs_dir.display()))?;
let fs = ClawFuse::new(store, snapshots, tags, refs)?;
let mut opts = vec![