debug(CI): change current_dir in git config

This commit is contained in:
qwjyh 2025-02-04 04:36:40 +09:00
parent 3922d634b6
commit 9285f44975

View file

@ -49,6 +49,7 @@ mod integrated_test {
eprintln!("{:?}", repo.path()); eprintln!("{:?}", repo.path());
let git_status = std::process::Command::new("git") let git_status = std::process::Command::new("git")
.args(["status"]) .args(["status"])
.current_dir(temp_dir.path())
.spawn() .spawn()
.context("git status")? .context("git status")?
.wait() .wait()
@ -56,6 +57,7 @@ mod integrated_test {
eprintln!("{}", git_status); eprintln!("{}", git_status);
let git_config = std::process::Command::new("git") let git_config = std::process::Command::new("git")
.args(["config", "--list"]) .args(["config", "--list"])
.current_dir(temp_dir.path())
.spawn() .spawn()
.context("git status")? .context("git status")?
.wait() .wait()
@ -63,6 +65,7 @@ mod integrated_test {
eprintln!("{}", git_config); eprintln!("{}", git_config);
let git_config = std::process::Command::new("git") let git_config = std::process::Command::new("git")
.args(["config", "--list", "--local"]) .args(["config", "--list", "--local"])
.current_dir(temp_dir.path())
.spawn() .spawn()
.context("git status")? .context("git status")?
.wait() .wait()