Skip to content

Commit

Permalink
Fix Command::new behaviour on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-BEat authored and Stephan Dilly committed Aug 18, 2020
1 parent ea14f78 commit 14cfb39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions asyncgit/src/sync/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ fn run_hook(
let output = Command::new("bash")
.args(bash_args)
.current_dir(path)
.env("DUMMYENV", "FixPathHandlingOnWindows") // This call forces Command to handle the Path environment correctly on windows, the specific env set here does not matter
.output();

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

0 comments on commit 14cfb39

Please sign in to comment.