summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--services/migrations/migrate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/migrations/migrate.go b/services/migrations/migrate.go
index a3b9d1cfa8..0ebb3411fd 100644
--- a/services/migrations/migrate.go
+++ b/services/migrations/migrate.go
@@ -281,7 +281,7 @@ func migrateRepository(doer *user_model.User, downloader base.Downloader, upload
lbBatchSize = len(labels)
}
- if err := uploader.CreateLabels(labels...); err != nil {
+ if err := uploader.CreateLabels(labels[:lbBatchSize]...); err != nil {
return err
}
labels = labels[lbBatchSize:]