summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-04 21:34:37 -0500
committerUnknwon <u@gogs.io>2015-12-04 21:34:37 -0500
commite82ee40e9e667797099edc05ec1b774f65310464 (patch)
treee5fa7e40c57566d3910ce81ae5816f58839e48f7
parent1ee7c33e93b285183210cf608416312bc85200d5 (diff)
downloadgitea-e82ee40e9e667797099edc05ec1b774f65310464.tar.gz
gitea-e82ee40e9e667797099edc05ec1b774f65310464.zip
init with all enabled
-rw-r--r--models/repo.go15
1 files changed, 9 insertions, 6 deletions
diff --git a/models/repo.go b/models/repo.go
index 47cebb6c92..a3417ef308 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -823,12 +823,15 @@ func createRepository(e *xorm.Session, u *User, repo *Repository) (err error) {
// CreateRepository creates a repository for given user or organization.
func CreateRepository(u *User, opts CreateRepoOptions) (_ *Repository, err error) {
repo := &Repository{
- OwnerID: u.Id,
- Owner: u,
- Name: opts.Name,
- LowerName: strings.ToLower(opts.Name),
- Description: opts.Description,
- IsPrivate: opts.IsPrivate,
+ OwnerID: u.Id,
+ Owner: u,
+ Name: opts.Name,
+ LowerName: strings.ToLower(opts.Name),
+ Description: opts.Description,
+ IsPrivate: opts.IsPrivate,
+ EnableWiki: true,
+ EnableIssues: true,
+ EnablePulls: true,
}
sess := x.NewSession()