Skip to content

Commit 02542a2

Browse files
lunnylafriks
authored andcommitted
fix missing repo description when migrating (go-gitea#7000)
1 parent 8de76b6 commit 02542a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/migrations/migrate.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ func migrateRepository(downloader base.Downloader, uploader base.Uploader, opts
7676
}
7777
repo.IsPrivate = opts.Private
7878
repo.IsMirror = opts.Mirror
79+
if opts.Description != "" {
80+
repo.Description = opts.Description
81+
}
7982
log.Trace("migrating git data")
8083
if err := uploader.CreateRepo(repo, opts.Wiki); err != nil {
8184
return err

0 commit comments

Comments
 (0)