mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 08:21:11 +00:00 
			
		
		
		
	Merge branch 'master' into show-git-notes
This commit is contained in:
		
				commit
				
					
						cb71e3f1ac
					
				
			
		
					 2 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -48,7 +48,7 @@ type U2FRegistrationList []*U2FRegistration
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// ToRegistrations will convert all U2FRegistrations to u2f.Registrations
 | 
					// ToRegistrations will convert all U2FRegistrations to u2f.Registrations
 | 
				
			||||||
func (list U2FRegistrationList) ToRegistrations() []u2f.Registration {
 | 
					func (list U2FRegistrationList) ToRegistrations() []u2f.Registration {
 | 
				
			||||||
	regs := make([]u2f.Registration, len(list))
 | 
						regs := make([]u2f.Registration, 0, len(list))
 | 
				
			||||||
	for _, reg := range list {
 | 
						for _, reg := range list {
 | 
				
			||||||
		r, err := reg.Parse()
 | 
							r, err := reg.Parse()
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue