Skip to content

Commit 4044ffb

Browse files
authored
Merge pull request #1581 from EliahKagan/fixture-env
Unset other env vars related to `GIT_DIR` for fixtures
2 parents c2bdda4 + 9d4dd12 commit 4044ffb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/tools/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,11 @@ fn configure_command<'a>(
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)

0 commit comments

Comments
 (0)