From 080f2b4c234e485755a9e376f530a3c68984c5d0 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 12 Sep 2024 15:26:08 +0100 Subject: fix(remote): `push` detect ssh auth failure adding new errors that are authentication related --- src/bin/git_remote_nostr/utils.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/bin/git_remote_nostr/utils.rs b/src/bin/git_remote_nostr/utils.rs index 1d65e3c..40fe937 100644 --- a/src/bin/git_remote_nostr/utils.rs +++ b/src/bin/git_remote_nostr/utils.rs @@ -297,7 +297,8 @@ pub fn error_might_be_authentication_related(error: &anyhow::Error) -> bool { let error_str = error.to_string(); for s in [ "no ssh keys found", - "invalid or unknown remote ssh", + "invalid or unknown remote ssh hostkey", + "all authentication attempts failed", "Permission to", "Repository not found", ] { -- cgit v1.2.3