diff --git a/tests/tools/src/lib.rs b/tests/tools/src/lib.rs index 4af4ed46d9..513c06c91b 100644 --- a/tests/tools/src/lib.rs +++ b/tests/tools/src/lib.rs @@ -600,6 +600,11 @@ fn configure_command<'a>( .stderr(std::process::Stdio::piped()) .current_dir(script_result_directory) .env_remove("GIT_DIR") + .env_remove("GIT_INDEX_FILE") + .env_remove("GIT_OBJECT_DIRECTORY") + .env_remove("GIT_ALTERNATE_OBJECT_DIRECTORIES") + .env_remove("GIT_WORK_TREE") + .env_remove("GIT_COMMON_DIR") .env_remove("GIT_ASKPASS") .env_remove("SSH_ASKPASS") .env("MSYS", msys_for_git_bash_on_windows)