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
Showing only changes of commit 6d16d30eee - Show all commits
+6 -2
View File
@@ -750,8 +750,12 @@ fn main() -> Result<()> {
let tag_dir = cli.data_dir.join("tags-db"); let tag_dir = cli.data_dir.join("tags-db");
let tags = TagStore::open(tag_dir.clone()) let tags = TagStore::open(tag_dir.clone())
.with_context(|| format!("opening tag store at {}", tag_dir.display()))?; .with_context(|| format!("opening tag store at {}", tag_dir.display()))?;
let refs = RefStore::open(cli.data_dir.clone()) // Ref store lives at <blob_root>/refs-db/ — same nested convention
.with_context(|| format!("opening ref store at {}", cli.data_dir.display()))?; // 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 fs = ClawFuse::new(store, snapshots, tags, refs)?;
let mut opts = vec![ let mut opts = vec![