Skip to content

Commit 9fe297e

Browse files
committed
try to work around CI issue
1 parent dc7d60f commit 9fe297e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/src/core/config/config.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2095,6 +2095,9 @@ impl Config {
20952095
/// Use this rather than `Command::new("git")` in order to support out-of-tree builds.
20962096
pub(crate) fn git(&self) -> Command {
20972097
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.
20982101
git.arg("--git-dir").arg(self.src.join(".git"));
20992102
git
21002103
}

0 commit comments

Comments
 (0)