add README support for creating repository

This commit is contained in:
Lunny Xiao 2014-03-11 12:18:44 +08:00
parent 52837e3d36
commit f9907bbfa4
3 changed files with 65 additions and 12 deletions

View file

@ -123,7 +123,7 @@ func runServ(*cli.Context) {
println("Repository", user.Name+"/"+repoName, "is not exist")
return
} else if isWrite {
_, err := models.CreateRepository(user, repoName, "", false)
_, err := models.CreateRepository(user, repoName, "", false, true, "")
if err != nil {
println("Create repository failed")
return