Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
as per @lunny
  • Loading branch information
6543 committed Sep 6, 2021
commit 4f55d71187cac3215458c3fea4bf12a6f5c83566
5 changes: 0 additions & 5 deletions models/repo_pushmirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ package models

import (
"errors"
"fmt"
"time"

"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/timeutil"

"xorm.io/xorm"
Expand Down Expand Up @@ -59,9 +57,6 @@ func (m *PushMirror) GetRemoteName() string {

// InsertPushMirror inserts a push-mirror to database
func InsertPushMirror(m *PushMirror) error {
if setting.Mirror.DisableNewPush {
return fmt.Errorf("creation of new push mirror's are disabled")
}
_, err := x.Insert(m)
return err
}
Expand Down