From 38592955b25c03f357460d71ad0d56e7188f03cf Mon Sep 17 00:00:00 2001 From: cloudhead Date: Sun, 30 Jun 2024 10:28:23 +0200 Subject: [PATCH] remote-helper: Fix key-mismatch error The error is about the remote namespace, so that's the one we should include. --- radicle-remote-helper/src/push.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicle-remote-helper/src/push.rs b/radicle-remote-helper/src/push.rs index 3a11c82d..b9ec007f 100644 --- a/radicle-remote-helper/src/push.rs +++ b/radicle-remote-helper/src/push.rs @@ -169,7 +169,7 @@ pub fn run( let nid = url.namespace.ok_or(Error::NoKey).and_then(|ns| { (profile.public_key == ns) .then_some(ns) - .ok_or(Error::KeyMismatch(profile.public_key.into())) + .ok_or(Error::KeyMismatch(ns.into())) })?; let signer = profile.signer()?; let mut line = String::new();