diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-11 00:53:53 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-11 00:53:53 -0400 |
commit | b4727c7601d9ab30c4a9aa26a63cb0ce257e7d88 (patch) | |
tree | a42fab346f1b16943f75d24067945792e6f50804 /routers/repo/repo.go | |
parent | 5b5d54621e6b17e65e1df9227ca1bd5a66ce86db (diff) | |
download | gitea-b4727c7601d9ab30c4a9aa26a63cb0ce257e7d88.tar.gz gitea-b4727c7601d9ab30c4a9aa26a63cb0ce257e7d88.zip |
Update create repo
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r-- | routers/repo/repo.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go index 0e9ced4262..221d4ba1f3 100644 --- a/routers/repo/repo.go +++ b/routers/repo/repo.go @@ -42,11 +42,11 @@ func Create(form auth.CreateRepoForm, req *http.Request, r render.Render, data b return } } - fmt.Println(models.RepoPath(user.Name, form.RepoName)) + if err == nil { if _, err = models.CreateRepository(user, - form.RepoName, form.Description, form.Visibility == "private", - form.InitReadme == "true", form.Language); err == nil { + form.RepoName, form.Description, form.Language, + form.Visibility == "private", form.InitReadme == "true"); err == nil { if err == nil { data["RepoName"] = user.Name + "/" + form.RepoName r.HTML(200, "repo/created", data) |