mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 12:54:53 -05:00
Bug fix
This commit is contained in:
parent
adb17791bd
commit
e251b9bbca
1 changed files with 2 additions and 4 deletions
|
@ -48,10 +48,8 @@ func Create(form auth.CreateRepoForm, req *http.Request, r render.Render, data b
|
|||
if _, err = models.CreateRepository(user,
|
||||
form.RepoName, form.Description, form.Language, form.License,
|
||||
form.Visibility == "private", form.InitReadme == "on"); err == nil {
|
||||
if err == nil {
|
||||
r.Redirect("/"+user.Name+"/"+form.RepoName, 200)
|
||||
return
|
||||
}
|
||||
r.Redirect("/"+user.Name+"/"+form.RepoName, 302)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue