mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-07 15:17:40 +00:00
test-sha256: PushDeployKeyOnEmptyRepo
(cherry picked from commit 348182f4b3
)
This commit is contained in:
parent
7c40672ddf
commit
ab4570d0cb
9 changed files with 52 additions and 42 deletions
|
@ -11,6 +11,7 @@ import (
|
|||
auth_model "code.gitea.io/gitea/models/auth"
|
||||
"code.gitea.io/gitea/models/db"
|
||||
git_model "code.gitea.io/gitea/models/git"
|
||||
"code.gitea.io/gitea/modules/git"
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
"code.gitea.io/gitea/tests"
|
||||
|
||||
|
@ -114,7 +115,7 @@ func testAPICreateBranches(t *testing.T, giteaURL *url.URL) {
|
|||
ctx := NewAPITestContext(t, username, "my-noo-repo", auth_model.AccessTokenScopeWriteRepository, auth_model.AccessTokenScopeWriteUser)
|
||||
giteaURL.Path = ctx.GitPath()
|
||||
|
||||
t.Run("CreateRepo", doAPICreateRepository(ctx, false))
|
||||
t.Run("CreateRepo", doAPICreateRepository(ctx, false, git.Sha1ObjectFormat)) // FIXME: use forEachObjectFormat
|
||||
testCases := []struct {
|
||||
OldBranch string
|
||||
NewBranch string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue