Add SSL to possible spurious errors (#361)

\cc @konstin
This commit is contained in:
Charlie Marsh 2023-11-07 10:53:39 -08:00 committed by GitHub
parent 294955ecff
commit 7abe141d3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -37,7 +37,7 @@ impl From<PathBuf> for RequirementsSource {
}
}
#[derive(Debug, Default)]
#[derive(Debug, Default, Clone)]
pub(crate) enum ExtrasSpecification<'a> {
#[default]
None,

View file

@ -143,6 +143,7 @@ fn maybe_spurious(err: &Error) -> bool {
git2::ErrorClass::Net
| git2::ErrorClass::Os
| git2::ErrorClass::Zlib
| git2::ErrorClass::Ssl
| git2::ErrorClass::Http => return git_err.code() != git2::ErrorCode::Certificate,
_ => (),
}