mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-03 15:33:13 +03:00
Merge pull request #1506 from gitbutlerapp/create-virtual-branch-reference
Create virtual branch reference
This commit is contained in:
commit
7480ac20be
@ -604,5 +604,11 @@ pub fn create_virtual_branch_from_branch(
|
||||
|
||||
let writer = branch::Writer::new(gb_repository);
|
||||
writer.write(&branch).context("failed to write branch")?;
|
||||
|
||||
project_repository
|
||||
.git_repository
|
||||
.reference(&branch.refname(), branch.head, false, "new vbranch")
|
||||
.context("failed to create branch reference")?;
|
||||
|
||||
Ok(branch)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user