upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/git_remote_nostr/list.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/git_remote_nostr/list.rs')
-rw-r--r--src/bin/git_remote_nostr/list.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/git_remote_nostr/list.rs b/src/bin/git_remote_nostr/list.rs
index 26f699d..ae76614 100644
--- a/src/bin/git_remote_nostr/list.rs
+++ b/src/bin/git_remote_nostr/list.rs
@@ -22,7 +22,8 @@ use repo_ref::RepoRef;
22use crate::{ 22use crate::{
23 git::Repo, 23 git::Repo,
24 utils::{ 24 utils::{
25 get_open_proposals, get_read_protocols_to_try, get_short_git_server_name, join_with_and, 25 error_is_not_authentication_failure, get_open_proposals, get_read_protocols_to_try,
26 get_short_git_server_name, join_with_and,
26 }, 27 },
27}; 28};
28 29
@@ -196,6 +197,10 @@ pub fn list_from_remote(
196 format!("list: {formatted_url} failed over {protocol}: {error}").as_str(), 197 format!("list: {formatted_url} failed over {protocol}: {error}").as_str(),
197 )?; 198 )?;
198 failed_protocols.push(protocol); 199 failed_protocols.push(protocol);
200 if protocol == &ServerProtocol::Ssh && error_is_not_authentication_failure(&error) {
201 // authenticated by failed to complete request
202 break;
203 }
199 } 204 }
200 } 205 }
201 term.clear_last_lines(1)?; 206 term.clear_last_lines(1)?;