Skip to content

Commit 11df790

Browse files
committed
try to prevent 'git' reading user and system configuration (#960)
1 parent 6b4a303 commit 11df790

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/tools/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,8 @@ fn configure_command<'a>(
504504
.env_remove("GIT_DIR")
505505
.env_remove("GIT_ASKPASS")
506506
.env_remove("SSH_ASKPASS")
507+
.env("GIT_CONFIG_SYSTEM", ":")
508+
.env("GIT_CONFIG_GLOBAL", ":")
507509
.env("GIT_TERMINAL_PROMPT", "false")
508510
.env("GIT_AUTHOR_DATE", "2000-01-01 00:00:00 +0000")
509511
.env("GIT_AUTHOR_EMAIL", "author@example.com")

0 commit comments

Comments
 (0)