diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-13 04:08:25 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-13 04:08:25 -0400 |
commit | d26a333dfbd47e9b6f92fad7fcd779ad72070f8a (patch) | |
tree | b4579585ff66f541f718f850efacecca3c5e3c12 /models/repo.go | |
parent | 9d983f27d69b72f42eeb833cb0f38e78e3819839 (diff) | |
download | gitea-d26a333dfbd47e9b6f92fad7fcd779ad72070f8a.tar.gz gitea-d26a333dfbd47e9b6f92fad7fcd779ad72070f8a.zip |
go get
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 13 |
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) |