summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-13 04:08:25 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-13 04:08:25 -0400
commitd26a333dfbd47e9b6f92fad7fcd779ad72070f8a (patch)
treeb4579585ff66f541f718f850efacecca3c5e3c12 /models/repo.go
parent9d983f27d69b72f42eeb833cb0f38e78e3819839 (diff)
downloadgitea-d26a333dfbd47e9b6f92fad7fcd779ad72070f8a.tar.gz
gitea-d26a333dfbd47e9b6f92fad7fcd779ad72070f8a.zip
go get
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/models/repo.go b/models/repo.go
index 01b8fdb126..01736b631d 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -255,12 +255,13 @@ func CreateRepository(user *User, name, desc, lang, license string, private, mir
}
repo := &Repository{
- OwnerId: user.Id,
- Name: name,
- LowerName: strings.ToLower(name),
- Description: desc,
- IsPrivate: private,
- IsBare: lang == "" && license == "" && !initReadme,
+ OwnerId: user.Id,
+ Name: name,
+ LowerName: strings.ToLower(name),
+ Description: desc,
+ IsPrivate: private,
+ IsBare: lang == "" && license == "" && !initReadme,
+ DefaultBranch: "master",
}
repoPath := RepoPath(user.Name, repo.Name)