Skip to content

Commit cb71e3f

Browse files
authored
Merge branch 'master' into show-git-notes
2 parents 7542929 + 02542a2 commit cb71e3f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

models/u2f.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type U2FRegistrationList []*U2FRegistration
4848

4949
// ToRegistrations will convert all U2FRegistrations to u2f.Registrations
5050
func (list U2FRegistrationList) ToRegistrations() []u2f.Registration {
51-
regs := make([]u2f.Registration, len(list))
51+
regs := make([]u2f.Registration, 0, len(list))
5252
for _, reg := range list {
5353
r, err := reg.Parse()
5454
if err != nil {

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.Uncyclo); err != nil {
8184
return err

0 commit comments

Comments
 (0)