From 14cfb3923da4caf66d17529acadaf0bd87897bba Mon Sep 17 00:00:00 2001 From: dr-BEat Date: Tue, 18 Aug 2020 20:46:10 +0200 Subject: [PATCH] Fix Command::new behaviour on windows --- asyncgit/src/sync/hooks.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/asyncgit/src/sync/hooks.rs b/asyncgit/src/sync/hooks.rs index 35b065ba070..271e93d38bf 100644 --- a/asyncgit/src/sync/hooks.rs +++ b/asyncgit/src/sync/hooks.rs @@ -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");