Fix a bug where repositories were always being marked as changed (#22725)

Release Notes:

- N/A

Co-authored-by: cole <cole@zed.dev>
This commit is contained in:
Mikayla Maki 2025-01-06 11:03:15 -08:00 committed by GitHub
parent 3a061a91e7
commit ec2506b2e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 41 additions and 19 deletions

View file

@ -680,7 +680,7 @@ pub fn split_worktree_update(mut message: UpdateWorktree) -> impl Iterator<Item
if !repository_map.is_empty() {
for entry in &updated_entries {
if let Some(repo) = repository_map.remove(&entry.id) {
updated_repositories.push(repo)
updated_repositories.push(repo);
}
}
}