From 600753b47b75898c311ecfb625bd1887031b3475 Mon Sep 17 00:00:00 2001 From: akbash Date: Wed, 15 Jul 2026 23:43:21 +0300 Subject: fix: guard cli requests against protocol mismatches (#1453) refs #1435 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> Co-authored-by: Can Celik --- src/cli/plugin.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cli/plugin.rs') diff --git a/src/cli/plugin.rs b/src/cli/plugin.rs index 5cc528f4..68cf0282 100644 --- a/src/cli/plugin.rs +++ b/src/cli/plugin.rs @@ -932,6 +932,9 @@ fn register_installed_plugin( ), ))); } + Err(unlink_err) if super::protocol_mismatch_was_reported(&unlink_err) => { + return Err(InstallFailure::KeepCheckout(unlink_err)); + } Err(unlink_err) => { return Err(InstallFailure::KeepCheckout(std::io::Error::other( format!( -- cgit v1.2.3