diff options
Diffstat (limited to 'tests/cli_test_utils')
-rw-r--r-- | tests/cli_test_utils/git.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/cli_test_utils/git.rs b/tests/cli_test_utils/git.rs index a2acd59..99177e8 100644 --- a/tests/cli_test_utils/git.rs +++ b/tests/cli_test_utils/git.rs @@ -19,6 +19,17 @@ pub fn create_clone(c: &TestContext, repo_dir: &Path, relative_name: &str) -> Pa } pub fn create_commit(repo_dir: &Path) -> Result<String> { + Command::new("git") + .args(["config", "user.email", "shukkie@example.com"]) + .current_dir(&repo_dir) + .assert() + .success(); + Command::new("git") + .args(["config", "user.name", "Shackle Test User"]) + .current_dir(&repo_dir) + .assert() + .success(); + let test_file_name = repo_dir.join("some_file"); fs::write(test_file_name, "Some content or something")?; Command::new("git") |