Skip to content

Commit

Permalink
fix: gix::env::fetch::collate::Error now considers negotiation erro…
Browse files Browse the repository at this point in the history
…rs a sign of corrupt git repos.

Indeed, all of these negotiation errors are due to failures reading references or objects that ought
to be there.
  • Loading branch information
Byron committed Jun 6, 2023
1 parent fd2593c commit 9010f58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gix/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ pub mod collate {
Error::Fetch(
crate::remote::fetch::Error::PackThreads(_)
| crate::remote::fetch::Error::PackIndexVersion(_)
| crate::remote::fetch::Error::RemovePackKeepFile { .. },
| crate::remote::fetch::Error::RemovePackKeepFile { .. }
| crate::remote::fetch::Error::Negotiate(_),
) => true,
_ => false,
}
Expand Down

0 comments on commit 9010f58

Please sign in to comment.