mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 22:54:24 +00:00
parent
0bb56a413d
commit
dc71d00393
@ -23,6 +23,10 @@ func CreateRepository(doer, u *models.User, opts models.CreateRepoOptions) (_ *m
|
||||
}
|
||||
}
|
||||
|
||||
if len(opts.DefaultBranch) == 0 {
|
||||
opts.DefaultBranch = setting.Repository.DefaultBranch
|
||||
}
|
||||
|
||||
repo := &models.Repository{
|
||||
OwnerID: u.ID,
|
||||
Owner: u,
|
||||
|
Loading…
Reference in New Issue
Block a user