History

Merge pull request #1581 from EliahKagan/fixture-env

Unset other env vars related to `GIT_DIR` for fixtures

Sebastian Thiel committed 2 years ago

Commit 4044ffb2 parents c2bdda4 9d4dd121 file · +5 −0Browse files

Unified · Split

tests/tools/src/lib.rs+5−0
@@ -600,6 +600,11 @@ fn configure_command<'a>( · 599 unmodified lines
600 .stderr(std::process::Stdio::piped())600 .stderr(std::process::Stdio::piped())
601 .current_dir(script_result_directory)601 .current_dir(script_result_directory)
602 .env_remove("GIT_DIR")602 .env_remove("GIT_DIR")
603 .env_remove("GIT_INDEX_FILE")
604 .env_remove("GIT_OBJECT_DIRECTORY")
605 .env_remove("GIT_ALTERNATE_OBJECT_DIRECTORIES")
606 .env_remove("GIT_WORK_TREE")
607 .env_remove("GIT_COMMON_DIR")
603 .env_remove("GIT_ASKPASS")608 .env_remove("GIT_ASKPASS")
604 .env_remove("SSH_ASKPASS")609 .env_remove("SSH_ASKPASS")
605 .env("MSYS", msys_for_git_bash_on_windows)610 .env("MSYS", msys_for_git_bash_on_windows)