mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-11 10:32:54 +03:00
Ensure stack initialized when re-applying branch
- set_stack_head could throw without it - nolith reported this breakage on discord
This commit is contained in:
parent
9e27fea94e
commit
9499bde372
@ -228,6 +228,7 @@ impl BranchManager<'_> {
|
||||
branch.allow_rebasing = self.ctx.project().ok_with_force_push.into();
|
||||
branch.in_workspace = true;
|
||||
|
||||
branch.initialize(self.ctx)?;
|
||||
branch
|
||||
} else {
|
||||
let upstream_head = upstream_branch.is_some().then_some(head_commit.id());
|
||||
|
Loading…
Reference in New Issue
Block a user