Skip to content

Commit 8dd21ec

Browse files
authored
Merge pull request #12087 from Byron/fix
Use `ctx.project_dir` in oplog more consistently.
2 parents e8d5cc4 + 43ead3f commit 8dd21ec

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/gitbutler-oplog/src/oplog.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -648,10 +648,7 @@ fn restore_snapshot(
648648

649649
// Update virtual_branches.toml with the state from the snapshot
650650
fs::write(
651-
git2_repo
652-
.path()
653-
.join("gitbutler")
654-
.join("virtual_branches.toml"),
651+
ctx.project_data_dir().join("virtual_branches.toml"),
655652
vb_toml_blob.content(),
656653
)?;
657654

0 commit comments

Comments
 (0)