diff --git a/crates/gitbutler-core/src/snapshots/snapshot.rs b/crates/gitbutler-core/src/snapshots/snapshot.rs index 1175f6ddf..e78ca0db5 100644 --- a/crates/gitbutler-core/src/snapshots/snapshot.rs +++ b/crates/gitbutler-core/src/snapshots/snapshot.rs @@ -74,6 +74,7 @@ pub fn create(project: Project, label: String) -> Result { oplog_state.set_oplog_head(new_commit_oid.to_string())?; let reflog_hack = SnapshotsReference::new(project, &default_target_sha.to_string())?; + reflog_hack.set_target_ref(&default_target_sha.to_string())?; reflog_hack.set_oplog_ref(&new_commit_oid.to_string())?; Ok(new_commit_oid.to_string())