Skip to content

Commit

Permalink
refactor gix-transport with minor edits to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Apr 13, 2024
1 parent 09311b0 commit 996310b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gix-transport/src/client/blocking_io/ssh/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
2 changes: 1 addition & 1 deletion gix-transport/src/client/blocking_io/ssh/program_kind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ impl ProgramKind {
(_, Absent) => panic!("BUG: host should always be present in SSH URLs"),
};

// Try to force ssh to yield English messages (for parsing later).
Ok(prepare
.arg(host_maybe_with_user_as_ssh_arg)
// Try to force ssh to yield English messages (for parsing later).
.env("LANG", "C")
.env("LC_ALL", "C"))
}
Expand Down

0 comments on commit 996310b

Please sign in to comment.