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
600600 .stderr(std::process::Stdio::piped())
601601 .current_dir(script_result_directory)
602602 .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")
603608 .env_remove("GIT_ASKPASS")
604609 .env_remove("SSH_ASKPASS")
605610 .env("MSYS", msys_for_git_bash_on_windows)