0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-20 10:54:32 +01:00
This commit is contained in:
Zettat123 2025-01-17 12:46:18 +08:00
parent 1d2f466f10
commit 5b50ddfe22

View File

@ -347,7 +347,7 @@ func doCreateProtectedBranch(baseCtx *APITestContext, dstPath string) func(t *te
t.Run("PushProtectedBranch-UnprotectedFile", doGitPushTestRepository(dstPath, "origin", "release-v2.0"))
t.Run("CheckoutMaster-UnprotectedFile", doGitCheckoutBranch(dstPath, "master"))
//push a new branch with a new protected file
// push a new branch with a new protected file
t.Run("CreateProtectedBranch-ProtectedFile", doGitCreateBranch(dstPath, "release-v3.0"))
_, err = generateCommitWithNewData(testFileSizeSmall, dstPath, "user2@example.com", "User Two", "config")
assert.NoError(t, err)