summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go
index 4c844d9b56..cdaf943944 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -940,6 +940,10 @@ func MigrateRepository(doer, u *User, opts MigrateRepoOptions) (*Repository, err
if headBranch != nil {
repo.DefaultBranch = headBranch.Name
}
+
+ if err = SyncReleasesWithTags(repo, gitRepo); err != nil {
+ log.Error(4, "Failed to synchronize tags to releases for repository: %v", err)
+ }
}
if err = repo.UpdateSize(); err != nil {