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 dc8fe1f commit 23f9bc7Copy full SHA for 23f9bc7
src/bootstrap/src/utils/tests/git.rs
@@ -100,7 +100,7 @@ impl GitCtx {
100
}
101
102
pub fn commit(&self) -> String {
103
- self.run_git(&["add", "."]);
+ self.run_git(&["add", "--all", "."]);
104
self.run_git(&["commit", "-m", "commit message"]);
105
self.get_current_commit()
106
@@ -130,6 +130,10 @@ impl GitCtx {
130
fn git_cmd(&self) -> Command {
131
let mut cmd = Command::new("git");
132
cmd.current_dir(&self.dir);
133
+ // Ignore any global configs that the user might have set to ensure a more
134
+ // reproducible behavior.
135
+ cmd.env("GIT_CONFIG_NOSYSTEM", "1");
136
+ cmd.env("GIT_CONFIG_SYSTEM", "/tmp/non-existent-config");
137
cmd
138
139
0 commit comments