Browse Source

fix missing repo description when migrating (#7000)

tags/v1.21.12.1
Lunny Xiao Lauris BH 7 years ago
parent
commit
02542a2c15
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/migrations/migrate.go

+ 3
- 0
modules/migrations/migrate.go View File

@@ -76,6 +76,9 @@ func migrateRepository(downloader base.Downloader, uploader base.Uploader, opts
}
repo.IsPrivate = opts.Private
repo.IsMirror = opts.Mirror
if opts.Description != "" {
repo.Description = opts.Description
}
log.Trace("migrating git data")
if err := uploader.CreateRepo(repo, opts.Wiki); err != nil {
return err


Loading…
Cancel
Save