mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	fix missing repo description when migrating (#7000)
This commit is contained in:
		| @@ -76,6 +76,9 @@ func migrateRepository(downloader base.Downloader, uploader base.Uploader, opts | |||||||
| 	} | 	} | ||||||
| 	repo.IsPrivate = opts.Private | 	repo.IsPrivate = opts.Private | ||||||
| 	repo.IsMirror = opts.Mirror | 	repo.IsMirror = opts.Mirror | ||||||
|  | 	if opts.Description != "" { | ||||||
|  | 		repo.Description = opts.Description | ||||||
|  | 	} | ||||||
| 	log.Trace("migrating git data") | 	log.Trace("migrating git data") | ||||||
| 	if err := uploader.CreateRepo(repo, opts.Wiki); err != nil { | 	if err := uploader.CreateRepo(repo, opts.Wiki); err != nil { | ||||||
| 		return err | 		return err | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user