mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 14:31:30 +03:00
set target ref on snapshot
This commit is contained in:
parent
0911212a9c
commit
3d04c7fc5b
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user