Skip to content

Commit

Permalink
Flag git zlib errors as spurious errors
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexcrichton committed Jul 20, 2020
1 parent f84f3f8 commit 64d47cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/util/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
_ => (),
}
}
Expand Down

0 comments on commit 64d47cd

Please sign in to comment.