diff options
Diffstat (limited to 'src/bin/git_remote_nostr/fetch.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/fetch.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/git_remote_nostr/fetch.rs b/src/bin/git_remote_nostr/fetch.rs index c48da85..83b94b8 100644 --- a/src/bin/git_remote_nostr/fetch.rs +++ b/src/bin/git_remote_nostr/fetch.rs | |||
| @@ -15,7 +15,7 @@ use ngit::{ | |||
| 15 | }; | 15 | }; |
| 16 | 16 | ||
| 17 | use crate::utils::{ | 17 | use crate::utils::{ |
| 18 | error_is_not_authentication_failure, find_proposal_and_patches_by_branch_name, | 18 | fetch_or_list_error_is_not_authentication_failure, find_proposal_and_patches_by_branch_name, |
| 19 | get_oids_from_fetch_batch, get_open_proposals, get_read_protocols_to_try, join_with_and, | 19 | get_oids_from_fetch_batch, get_open_proposals, get_read_protocols_to_try, join_with_and, |
| 20 | }; | 20 | }; |
| 21 | 21 | ||
| @@ -140,7 +140,9 @@ fn fetch_from_git_server( | |||
| 140 | format!("fetch: {formatted_url} failed over {protocol}: {error}").as_str(), | 140 | format!("fetch: {formatted_url} failed over {protocol}: {error}").as_str(), |
| 141 | )?; | 141 | )?; |
| 142 | failed_protocols.push(protocol); | 142 | failed_protocols.push(protocol); |
| 143 | if protocol == &ServerProtocol::Ssh && error_is_not_authentication_failure(&error) { | 143 | if protocol == &ServerProtocol::Ssh |
| 144 | && fetch_or_list_error_is_not_authentication_failure(&error) | ||
| 145 | { | ||
| 144 | // authenticated by failed to complete request | 146 | // authenticated by failed to complete request |
| 145 | break; | 147 | break; |
| 146 | } | 148 | } |