mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
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:
parent
f84f3f8c63
commit
64d47cd1aa
@ -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,
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user