Revert "Fix schedule tasks bugs (#28691)"
This reverts commit97292da960
. (cherry picked from commit83e5eba031
) (cherry picked from commitf6ef8f3819
) Conflicts: services/repository/setting.go
This commit is contained in:
parent
0fd9d08ea0
commit
fe8622dae3
19 changed files with 90 additions and 206 deletions
|
@ -4,7 +4,6 @@
|
|||
package git_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"code.gitea.io/gitea/models/db"
|
||||
|
@ -133,7 +132,7 @@ func TestRenameBranch(t *testing.T) {
|
|||
}, git_model.WhitelistOptions{}))
|
||||
assert.NoError(t, committer.Commit())
|
||||
|
||||
assert.NoError(t, git_model.RenameBranch(db.DefaultContext, repo1, "master", "main", func(ctx context.Context, isDefault bool) error {
|
||||
assert.NoError(t, git_model.RenameBranch(db.DefaultContext, repo1, "master", "main", func(isDefault bool) error {
|
||||
_isDefault = isDefault
|
||||
return nil
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue