]> source.dussan.org Git - gitea.git/commitdiff
fix missing repo description when migrating (#7000)
authorLunny Xiao <xiaolunwen@gmail.com>
Mon, 20 May 2019 12:43:43 +0000 (20:43 +0800)
committerLauris BH <lauris@nix.lv>
Mon, 20 May 2019 12:43:43 +0000 (15:43 +0300)
modules/migrations/migrate.go

index d72c8696266f07ab97e0de10f1fed3ce467c2b3c..ac55a2e7278a55d8412edf38b2f200889fffaa9e 100644 (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