Configures git user identity for testing. This is needed in CI environments where global git config is not set.
(&self)
| 38 | /// Configures git user identity for testing. |
| 39 | /// This is needed in CI environments where global git config is not set. |
| 40 | pub fn configure_test_user(&self) -> Result<()> { |
| 41 | self.run_git_command(&["config", "user.email", "test@example.com"])?; |
| 42 | self.run_git_command(&["config", "user.name", "Test User"])?; |
| 43 | Ok(()) |
| 44 | } |
| 45 | |
| 46 | /// Stages all changes in the repository. |
| 47 | pub fn stage_all(&self) -> Result<()> { |
no test coverage detected