summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2023-12-11 19:26:33 +0100
committerCyborus <cyborus@cyborus.xyz>2023-12-11 21:51:36 +0100
commit96548b20260543284784238c8f16028bd365036f (patch)
treece681d80d9f8e210bb3cfa4bbebb51cc1d82f9e3 /tests
parentupdate ci to forgejo 1.21.2 (diff)
downloadforgejo-api-96548b20260543284784238c8f16028bd365036f.tar.xz
forgejo-api-96548b20260543284784238c8f16028bd365036f.zip
fix credentials
Diffstat (limited to 'tests')
-rw-r--r--tests/ci_test.rs3
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()?;