diff options
-rw-r--r-- | tests/ci_test.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ci_test.rs b/tests/ci_test.rs index 9388d3e..876b766 100644 --- a/tests/ci_test.rs +++ b/tests/ci_test.rs @@ -57,9 +57,10 @@ async fn repo(api: &forgejo_api::Forgejo) -> eyre::Result<()> { cmd.current_dir("/test_repo"); cmd }; + let _ = git().args(["config", "--global", "init.defaultBranch", "main"]).status()?; + let _ = git().args(["init"]).status()?; let _ = git().args(["config", "user.name", "TestingAdmin"]).status()?; let _ = git().args(["config", "user.email", "admin@noreply.example.org"]).status()?; - let _ = git().args(["init"]).status()?; tokio::fs::write("/test_repo/README.md", "# Test\nThis is a test repo").await?; let _ = git().args(["add", "."]).status()?; let _ = git().args(["commit", "-m", "initial commit"]).status()?; |