From 38969bbfadf2854f6acb1e515f8f388a01a018c2 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 9 May 2025 20:00:24 +0100 Subject: fix: always try git servers over other protocols remove the code that guessed whether it was an authentication failure and gave up is it wasn't. this prevents it from trying http for push when ssh is not supported eg. ngit-relay --- src/bin/git_remote_nostr/push.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/bin/git_remote_nostr/push.rs') diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs index 0cb1107..4eae92f 100644 --- a/src/bin/git_remote_nostr/push.rs +++ b/src/bin/git_remote_nostr/push.rs @@ -45,8 +45,7 @@ use crate::{ utils::{ Direction, find_proposal_and_patches_by_branch_name, get_all_proposals, get_remote_name_by_url, get_short_git_server_name, get_write_protocols_to_try, - join_with_and, push_error_is_not_authentication_failure, read_line, - set_protocol_preference, + join_with_and, read_line, set_protocol_preference, }, }; @@ -430,9 +429,6 @@ fn push_to_remote( format!("push: {formatted_url} failed over {protocol}: {error}").as_str(), )?; failed_protocols.push(protocol); - if push_error_is_not_authentication_failure(&error) { - break; - } } else { success = true; if !failed_protocols.is_empty() { -- cgit v1.2.3