Skip to content

Commit d00235a

Browse files
authored
Merge pull request #1580 from EliahKagan/msys
Append to preexisting `MSYS` env var even if ill-formed
2 parents 93e86f1 + c38d9b9 commit d00235a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tools/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,8 @@ fn configure_command<'a>(
593593
args: &[String],
594594
script_result_directory: &Path,
595595
) -> &'a mut std::process::Command {
596-
let mut msys_for_git_bash_on_windows = std::env::var("MSYS").unwrap_or_default();
597-
msys_for_git_bash_on_windows.push_str(" winsymlinks:nativestrict");
596+
let mut msys_for_git_bash_on_windows = std::env::var_os("MSYS").unwrap_or_default();
597+
msys_for_git_bash_on_windows.push(" winsymlinks:nativestrict");
598598
cmd.args(args)
599599
.stdout(std::process::Stdio::piped())
600600
.stderr(std::process::Stdio::piped())

0 commit comments

Comments
 (0)