upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/git_remote_nostr/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/git_remote_nostr/utils.rs')
-rw-r--r--src/bin/git_remote_nostr/utils.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/bin/git_remote_nostr/utils.rs b/src/bin/git_remote_nostr/utils.rs
index 5048ce2..3a9f07d 100644
--- a/src/bin/git_remote_nostr/utils.rs
+++ b/src/bin/git_remote_nostr/utils.rs
@@ -354,16 +354,6 @@ pub fn set_protocol_preference(
354 ) 354 )
355} 355}
356 356
357/// to understand whether to try over another protocol
358pub fn fetch_or_list_error_is_not_authentication_failure(error: &anyhow::Error) -> bool {
359 !error_might_be_authentication_related(error)
360}
361
362/// to understand whether to try over another protocol
363pub fn push_error_is_not_authentication_failure(error: &anyhow::Error) -> bool {
364 !error_might_be_authentication_related(error)
365}
366
367pub fn error_might_be_authentication_related(error: &anyhow::Error) -> bool { 357pub fn error_might_be_authentication_related(error: &anyhow::Error) -> bool {
368 let error_str = error.to_string(); 358 let error_str = error.to_string();
369 for s in [ 359 for s in [