1
0
mirror of https://github.com/go-gitea/gitea synced 2024-11-10 17:25:54 +01:00
This commit is contained in:
Unknown 2014-03-15 00:55:30 -04:00
parent adb17791bd
commit e251b9bbca

@ -48,12 +48,10 @@ func Create(form auth.CreateRepoForm, req *http.Request, r render.Render, data b
if _, err = models.CreateRepository(user, if _, err = models.CreateRepository(user,
form.RepoName, form.Description, form.Language, form.License, form.RepoName, form.Description, form.Language, form.License,
form.Visibility == "private", form.InitReadme == "on"); err == nil { form.Visibility == "private", form.InitReadme == "on"); err == nil {
if err == nil { r.Redirect("/"+user.Name+"/"+form.RepoName, 302)
r.Redirect("/"+user.Name+"/"+form.RepoName, 200)
return return
} }
} }
}
if err.Error() == models.ErrRepoAlreadyExist.Error() { if err.Error() == models.ErrRepoAlreadyExist.Error() {
data["HasError"] = true data["HasError"] = true