Skip to content

Commit 8b4c58f

Browse files
committed
Only use retryDownloader when setting > 1
1 parent 8c76204 commit 8b4c58f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/migrations/migrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func MigrateRepository(doer *models.User, ownerName string, opts base.MigrateOpt
6565

6666
uploader.gitServiceType = opts.GitServiceType
6767

68-
if setting.Migrations.MaxAttempts > 0 {
68+
if setting.Migrations.MaxAttempts > 1 {
6969
downloader = base.NewRetryDownloader(downloader, setting.Migrations.MaxAttempts, setting.Migrations.RetryBackoff)
7070
}
7171

0 commit comments

Comments
 (0)