util: Fix shell environment fetching failing with nu (#40275)
Release Notes: - Fixed shell environment fetching failing with nu shell
This commit is contained in:
@@ -45,6 +45,7 @@ pub fn get_windows_git_bash() -> Option<String> {
|
||||
let git = which::which("git").ok()?;
|
||||
let git_bash = git.parent()?.parent()?.join("bin").join("bash.exe");
|
||||
if git_bash.is_file() {
|
||||
log::info!("Found git-bash at {}", git_bash.display());
|
||||
Some(git_bash.to_string_lossy().to_string())
|
||||
} else {
|
||||
None
|
||||
|
||||
Reference in New Issue
Block a user