From 03fb64ac8fca02bed9786b0e832764c1728e6e0e Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Sat, 13 Apr 2024 00:38:00 +0000 Subject: [PATCH] (Re)add a short, more specific comment about user@ --- gix-transport/src/client/blocking_io/ssh/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gix-transport/src/client/blocking_io/ssh/mod.rs b/gix-transport/src/client/blocking_io/ssh/mod.rs index 6820051a5e..9e5effb471 100644 --- a/gix-transport/src/client/blocking_io/ssh/mod.rs +++ b/gix-transport/src/client/blocking_io/ssh/mod.rs @@ -124,7 +124,7 @@ pub fn connect( Usable(host) => host, Dangerous(host) => Err(Error::AmbiguousHostName { host: host.into() })?, Absent => panic!("BUG: host should always be present in SSH URLs"), - }), + }), // We omit `user@` with `-G`, so it need not be safe here, but host must be safe. ); gix_features::trace::debug!(cmd = ?cmd, "invoking `ssh` for feature check"); kind = if cmd.status().ok().map_or(false, |status| status.success()) {