Skip to content
  • Sponsor GitoxideLabs/gitoxide

  • Notifications You must be signed in to change notification settings
  • Fork 331

Commit 996310b

Browse files
committedApr 13, 2024
refactor gix-transport with minor edits to comments
1 parent 09311b0 commit 996310b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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-
}), // We omit `user@` with `-G`, so it need not be safe here, but host must be safe.
127+
}),
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()) {

‎gix-transport/src/client/blocking_io/ssh/program_kind.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ impl ProgramKind {
7272
(_, Absent) => panic!("BUG: host should always be present in SSH URLs"),
7373
};
7474

75-
// Try to force ssh to yield English messages (for parsing later).
7675
Ok(prepare
7776
.arg(host_maybe_with_user_as_ssh_arg)
77+
// Try to force ssh to yield English messages (for parsing later).
7878
.env("LANG", "C")
7979
.env("LC_ALL", "C"))
8080
}

0 commit comments

Comments
 (0)