Skip to content

Commit

Permalink
Merge pull request #1581 from EliahKagan/fixture-env
Browse files Browse the repository at this point in the history
Unset other env vars related to `GIT_DIR` for fixtures
  • Loading branch information
Byron committed Sep 7, 2024
2 parents c2bdda4 + 9d4dd12 commit 4044ffb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/tools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4044ffb

Please sign in to comment.