aboutsummaryrefslogtreecommitdiffstats
path: root/services/mirror/mirror.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/mirror/mirror.go')
-rw-r--r--services/mirror/mirror.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/mirror/mirror.go b/services/mirror/mirror.go
index 9c52f1723b..1ad9448b6b 100644
--- a/services/mirror/mirror.go
+++ b/services/mirror/mirror.go
@@ -15,6 +15,7 @@ import (
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/notification"
+ "code.gitea.io/gitea/modules/repository"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/sync"
"code.gitea.io/gitea/modules/timeutil"
@@ -207,7 +208,7 @@ func runSync(m *models.Mirror) ([]*mirrorSyncResult, bool) {
log.Error("OpenRepository: %v", err)
return nil, false
}
- if err = models.SyncReleasesWithTags(m.Repo, gitRepo); err != nil {
+ if err = repository.SyncReleasesWithTags(m.Repo, gitRepo); err != nil {
gitRepo.Close()
log.Error("Failed to synchronize tags to releases for repository: %v", err)
}