We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7c3653 commit 3faa074Copy full SHA for 3faa074
git-branchless-lib/src/git/run.rs
@@ -418,6 +418,11 @@ impl GitRunInfo {
418
if let Some(path) = env.get(OsStr::new("PATH")) {
419
path_components.extend(std::env::split_paths(path));
420
}
421
+ // On windows, PATH's name defaults to "Path".
422
+ #[cfg(target_os = "windows")]
423
+ if let Some(path) = env.get(OsStr::new("Path")) {
424
+ path_components.extend(std::env::split_paths(path));
425
+ }
426
std::env::join_paths(path_components).wrap_err("Joining path components")?
427
};
428
0 commit comments