summaryrefslogtreecommitdiffstats
path: root/services/convert/mirror.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/convert/mirror.go')
-rw-r--r--services/convert/mirror.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/convert/mirror.go b/services/convert/mirror.go
index dade6142a2..249ce2f968 100644
--- a/services/convert/mirror.go
+++ b/services/convert/mirror.go
@@ -4,13 +4,15 @@
package convert
import (
+ "context"
+
repo_model "code.gitea.io/gitea/models/repo"
api "code.gitea.io/gitea/modules/structs"
)
// ToPushMirror convert from repo_model.PushMirror and remoteAddress to api.TopicResponse
-func ToPushMirror(pm *repo_model.PushMirror) (*api.PushMirror, error) {
- repo := pm.GetRepository()
+func ToPushMirror(ctx context.Context, pm *repo_model.PushMirror) (*api.PushMirror, error) {
+ repo := pm.GetRepository(ctx)
return &api.PushMirror{
RepoName: repo.Name,
RemoteName: pm.RemoteName,