We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc7d60f commit 9fe297eCopy full SHA for 9fe297e
src/bootstrap/src/core/config/config.rs
@@ -2095,6 +2095,9 @@ impl Config {
2095
/// Use this rather than `Command::new("git")` in order to support out-of-tree builds.
2096
pub(crate) fn git(&self) -> Command {
2097
let mut git = Command::new("git");
2098
+ git.current_dir(&self.src);
2099
+ // Inside a git hook, just setting the working dir is not sufficient (probably because of
2100
+ // some env vars). But CI failed if we only set `--git-dir` so we do both.
2101
git.arg("--git-dir").arg(self.src.join(".git"));
2102
git
2103
}
0 commit comments