mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-10-06 00:47:09 +03:00
Filter out unapplied branches
We don't have any unstaged changes for unapplied branches, so there is nothing there to lock.
This commit is contained in:
parent
8aebcb4164
commit
67aad4e597
@ -1612,6 +1612,7 @@ fn new_compute_locks(
|
||||
|
||||
let branch_path_diffs = virtual_branches
|
||||
.iter()
|
||||
.filter(|branch| branch.applied)
|
||||
.filter_map(|branch| {
|
||||
let commit = repository.find_commit(branch.head.into()).ok()?;
|
||||
let tree = commit.tree().ok()?;
|
||||
|
Loading…
Reference in New Issue
Block a user