Flag git zlib errors as spurious errors

This may be a bad band-aid for now, but the goal is to help
address #8517 where this has been showing up in the wild quite a lot.
This commit is contained in:
Alex Crichton 2020-07-20 08:21:16 -07:00
parent f84f3f8c63
commit 64d47cd1aa

View File

@ -36,7 +36,7 @@ impl<'a> Retry<'a> {
fn maybe_spurious(err: &Error) -> bool {
if let Some(git_err) = err.downcast_ref::<git2::Error>() {
match git_err.class() {
git2::ErrorClass::Net | git2::ErrorClass::Os => return true,
git2::ErrorClass::Net | git2::ErrorClass::Os | git2::ErrorClass::Zlib => return true,
_ => (),
}
}