We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b629f8a commit 33be0e0Copy full SHA for 33be0e0
tests/tools/src/lib.rs
@@ -497,13 +497,16 @@ fn configure_command<'a>(
497
args: &[String],
498
script_result_directory: &Path,
499
) -> &'a mut std::process::Command {
500
+ let never_path = if cfg!(windows) { "-" } else { ":" };
501
cmd.args(args)
502
.stdout(std::process::Stdio::piped())
503
.stderr(std::process::Stdio::piped())
504
.current_dir(script_result_directory)
505
.env_remove("GIT_DIR")
506
.env_remove("GIT_ASKPASS")
507
.env_remove("SSH_ASKPASS")
508
+ .env("GIT_CONFIG_SYSTEM", never_path)
509
+ .env("GIT_CONFIG_GLOBAL", never_path)
510
.env("GIT_TERMINAL_PROMPT", "false")
511
.env("GIT_AUTHOR_DATE", "2000-01-01 00:00:00 +0000")
512
.env("GIT_AUTHOR_EMAIL", "author@example.com")
0 commit comments