From d0c9bb7bbc0d278aa606d4329c5597f73c9f329a Mon Sep 17 00:00:00 2001 From: Wenyu Zhao Date: Thu, 14 Mar 2024 00:14:27 +1100 Subject: [PATCH] Fix CI --- harness-cli/tests/helper.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/harness-cli/tests/helper.rs b/harness-cli/tests/helper.rs index 8cb6869..6e58827 100644 --- a/harness-cli/tests/helper.rs +++ b/harness-cli/tests/helper.rs @@ -53,6 +53,8 @@ impl TestCrate { exec("cargo", &["init", "--name", name, "--lib"])?; std::fs::write(".gitignore", "/target\nCargo.lock")?; exec("cargo", &["build"])?; + exec("git", &["config", "user.email", "you@example.com"])?; + exec("git", &["config", "user.name", "Your Name"])?; exec("git", &["add", "."])?; exec("git", &["commit", "-m", "Initial Commit"])?; exec("git", &["branch", "-M", "main"])?;