mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Make bootstrap git tests more self-contained
This commit is contained in:
parent
21079f53a3
commit
8fa5e3a571
@ -129,6 +129,9 @@ impl GitCtx {
|
||||
|
||||
fn git_cmd(&self) -> Command {
|
||||
let mut cmd = Command::new("git");
|
||||
cmd.env("GIT_CONFIG_NOSYSTEM", "1");
|
||||
cmd.env("GIT_CONFIG_SYSTEM", "/tmp/nonexistent");
|
||||
cmd.env("GIT_CONFIG_GLOBAL", "/tmp/nonexistent");
|
||||
cmd.current_dir(&self.dir);
|
||||
cmd
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user