diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-09-12 15:26:08 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-09-12 15:26:08 +0100 |
| commit | 080f2b4c234e485755a9e376f530a3c68984c5d0 (patch) | |
| tree | cd9b9cb5b066947070434211138a9588bbeb5964 /src | |
| parent | e882fde7d3fc7f2113196585b450f7065061abb9 (diff) | |
fix(remote): `push` detect ssh auth failure
adding new errors that are authentication related
Diffstat (limited to 'src')
| -rw-r--r-- | src/bin/git_remote_nostr/utils.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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 { | |||
| 297 | let error_str = error.to_string(); | 297 | let error_str = error.to_string(); |
| 298 | for s in [ | 298 | for s in [ |
| 299 | "no ssh keys found", | 299 | "no ssh keys found", |
| 300 | "invalid or unknown remote ssh", | 300 | "invalid or unknown remote ssh hostkey", |
| 301 | "all authentication attempts failed", | ||
| 301 | "Permission to", | 302 | "Permission to", |
| 302 | "Repository not found", | 303 | "Repository not found", |
| 303 | ] { | 304 | ] { |