|
|
@ -1369,12 +1369,13 @@ func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
repo := &Repository{
|
|
|
|
repo := &Repository{
|
|
|
|
OwnerID: u.ID,
|
|
|
|
OwnerID: u.ID,
|
|
|
|
Owner: u,
|
|
|
|
Owner: u,
|
|
|
|
Name: opts.Name,
|
|
|
|
Name: opts.Name,
|
|
|
|
LowerName: strings.ToLower(opts.Name),
|
|
|
|
LowerName: strings.ToLower(opts.Name),
|
|
|
|
Description: opts.Description,
|
|
|
|
Description: opts.Description,
|
|
|
|
IsPrivate: opts.IsPrivate,
|
|
|
|
IsPrivate: opts.IsPrivate,
|
|
|
|
|
|
|
|
IsFsckEnabled: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sess := x.NewSession()
|
|
|
|
sess := x.NewSession()
|
|
|
|