diff --git a/crates/mapdiffbot2/src/git_operations.rs b/crates/mapdiffbot2/src/git_operations.rs index 0c4ae4ee..7b4e9eb9 100644 --- a/crates/mapdiffbot2/src/git_operations.rs +++ b/crates/mapdiffbot2/src/git_operations.rs @@ -233,7 +233,7 @@ fn commit_all_stragglers(repo: &Repository) -> Result<()> { .statuses(None)? .into_iter() .find(|item| { - item.status().contains( + item.status().intersects( git2::Status::INDEX_NEW | git2::Status::INDEX_MODIFIED | git2::Status::INDEX_DELETED