Skip to content

Commit 03fb64a

Browse files
committed
(Re)add a short, more specific comment about user@
1 parent cf59f57 commit 03fb64a

File tree

1 file changed

+1
-1
lines changed
  • gix-transport/src/client/blocking_io/ssh

1 file changed

+1
-1
lines changed

gix-transport/src/client/blocking_io/ssh/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub fn connect(
124124
Usable(host) => host,
125125
Dangerous(host) => Err(Error::AmbiguousHostName { host: host.into() })?,
126126
Absent => panic!("BUG: host should always be present in SSH URLs"),
127-
}),
127+
}), // We omit `user@` with `-G`, so it need not be safe here, but host must be safe.
128128
);
129129
gix_features::trace::debug!(cmd = ?cmd, "invoking `ssh` for feature check");
130130
kind = if cmd.status().ok().map_or(false, |status| status.success()) {

0 commit comments

Comments
 (0)