()
| 565 | |
| 566 | #[cfg(test)] |
| 567 | fn git_subprocess_path() -> OsString { |
| 568 | std::env::var_os("PATH").unwrap_or_else(|| { |
| 569 | #[cfg(windows)] |
| 570 | { |
| 571 | OsString::new() |
| 572 | } |
| 573 | #[cfg(not(windows))] |
| 574 | { |
| 575 | OsString::from("/usr/bin:/bin") |
| 576 | } |
| 577 | }) |
| 578 | } |
| 579 | |
| 580 | #[cfg(not(test))] |
| 581 | fn git_subprocess_path() -> OsString { |
no outgoing calls