upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/bin/git_remote_nostr/fetch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/git_remote_nostr/fetch.rs')
-rw-r--r--src/bin/git_remote_nostr/fetch.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/bin/git_remote_nostr/fetch.rs b/src/bin/git_remote_nostr/fetch.rs
index a7210d0..34a02fc 100644
--- a/src/bin/git_remote_nostr/fetch.rs
+++ b/src/bin/git_remote_nostr/fetch.rs
@@ -24,8 +24,7 @@ use nostr::nips::nip19;
24use nostr_sdk::{Event, ToBech32}; 24use nostr_sdk::{Event, ToBech32};
25 25
26use crate::utils::{ 26use crate::utils::{
27 Direction, fetch_or_list_error_is_not_authentication_failure, 27 Direction, find_proposal_and_patches_by_branch_name, get_oids_from_fetch_batch,
28 find_proposal_and_patches_by_branch_name, get_oids_from_fetch_batch,
29 get_open_or_draft_proposals, get_read_protocols_to_try, join_with_and, set_protocol_preference, 28 get_open_or_draft_proposals, get_read_protocols_to_try, join_with_and, set_protocol_preference,
30}; 29};
31 30
@@ -196,12 +195,6 @@ pub fn fetch_from_git_server(
196 format!("fetch: {formatted_url} failed over {protocol}: {error}").as_str(), 195 format!("fetch: {formatted_url} failed over {protocol}: {error}").as_str(),
197 )?; 196 )?;
198 failed_protocols.push(protocol); 197 failed_protocols.push(protocol);
199 if protocol == &ServerProtocol::Ssh
200 && fetch_or_list_error_is_not_authentication_failure(&error)
201 {
202 // authenticated by failed to complete request
203 break;
204 }
205 } else { 198 } else {
206 success = true; 199 success = true;
207 if !failed_protocols.is_empty() { 200 if !failed_protocols.is_empty() {