diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-05-20 20:43:43 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-05-20 15:43:43 +0300 |
commit | 02542a2c15585002c673a9e3eb1ced036c8431d7 (patch) | |
tree | f02a6aac22d8f0f9570e6ad014c2e1ddc88578dd /modules/migrations | |
parent | 8de76b6e646e91c41143242dc0a8d3ae05b35023 (diff) | |
download | gitea-02542a2c15585002c673a9e3eb1ced036c8431d7.tar.gz gitea-02542a2c15585002c673a9e3eb1ced036c8431d7.zip |
fix missing repo description when migrating (#7000)
Diffstat (limited to 'modules/migrations')
-rw-r--r-- | modules/migrations/migrate.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/migrations/migrate.go b/modules/migrations/migrate.go index d72c869626..ac55a2e727 100644 --- a/modules/migrations/migrate.go +++ b/modules/migrations/migrate.go @@ -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 |