Fix a panic in the git store (#28590)
Closes #ISSUE Release Notes: - Fixed a panic that could occur when git statuses were updated.
This commit is contained in:
parent
78662f8fea
commit
5909d1258b
1 changed files with 1 additions and 1 deletions
|
@ -4048,7 +4048,7 @@ impl Repository {
|
||||||
for (repo_path, status) in &*statuses.entries {
|
for (repo_path, status) in &*statuses.entries {
|
||||||
changed_paths.remove(repo_path);
|
changed_paths.remove(repo_path);
|
||||||
if cursor.seek_forward(&PathTarget::Path(repo_path), Bias::Left, &()) {
|
if cursor.seek_forward(&PathTarget::Path(repo_path), Bias::Left, &()) {
|
||||||
if &cursor.item().unwrap().status == status {
|
if cursor.item().is_some_and(|entry| entry.status == *status) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue