Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 14cfb39

Browse files
dr-BEatStephan Dilly
authored and
Stephan Dilly
committedAug 18, 2020
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

Lines changed: 1 addition & 0 deletions
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)
Please sign in to comment.