set target ref on snapshot

This commit is contained in:
Kiril Videlov 2024-04-25 14:22:31 +02:00
parent 0911212a9c
commit 3d04c7fc5b

View File

@ -74,6 +74,7 @@ pub fn create(project: Project, label: String) -> Result<String> {
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())