Skip to content

Commit 14cfb39

Browse files
dr-BEatStephan Dilly
authored and
Stephan Dilly
committed
Fix Command::new behaviour on windows
1 parent ea14f78 commit 14cfb39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

asyncgit/src/sync/hooks.rs

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ fn run_hook(
105105
let output = Command::new("bash")
106106
.args(bash_args)
107107
.current_dir(path)
108+
.env("DUMMYENV", "FixPathHandlingOnWindows") // This call forces Command to handle the Path environment correctly on windows, the specific env set here does not matter
108109
.output();
109110

110111
let output = output.expect("general hook error");

0 commit comments

Comments
 (0)