fix: configure git identity for merge and rebase test

Цей коміт міститься в:
l0ng-ai committed 2026-10-26 08:30:07 +08:00
1 джерело 6b9a2ec67e
коміт d7c27c1184
1 file changed
+5
+5
Переглянути файл
@@ -120,6 +120,11 @@ fn merge_with_options_and_rebase_onto() {
let tmp = tempfile::tempdir().unwrap();
let dir = tmp.path();
git(dir, &["init", "-q"], None);
// Repo operations spawn their own Git commands, so command-local `-c`
// options in the helper do not supply their committer identity.
git(dir, &["config", "user.name", "Test"], None);
git(dir, &["config", "user.email", "[email protected]"], None);
git(dir, &["config", "commit.gpgsign", "false"], None);
let base = commit(dir, "a.txt", "base", 1000);
git(dir, &["checkout", "-q", "-b", "feature"], None);
let f1 = commit(dir, "f.txt", "f1", 2000);