|
|
|
@@ -6,7 +6,6 @@ |
|
|
|
package repo |
|
|
|
|
|
|
|
import ( |
|
|
|
"code.gitea.io/gitea/modules/validation" |
|
|
|
"fmt" |
|
|
|
"net/url" |
|
|
|
"os" |
|
|
|
@@ -15,6 +14,8 @@ import ( |
|
|
|
"strings" |
|
|
|
"unicode/utf8" |
|
|
|
|
|
|
|
"code.gitea.io/gitea/modules/validation" |
|
|
|
|
|
|
|
"code.gitea.io/gitea/models" |
|
|
|
"code.gitea.io/gitea/modules/auth" |
|
|
|
"code.gitea.io/gitea/modules/base" |
|
|
|
@@ -193,7 +194,10 @@ func CreatePost(ctx *context.Context, form auth.CreateRepoForm) { |
|
|
|
return |
|
|
|
} |
|
|
|
ctx.Data["ContextUser"] = ctxUser |
|
|
|
|
|
|
|
if !form.AutoAgree { |
|
|
|
ctx.RenderWithErr(ctx.Tr("repo.template.one_promise"), tplCreate, form) |
|
|
|
return |
|
|
|
} |
|
|
|
if ctx.HasError() { |
|
|
|
ctx.HTML(200, tplCreate) |
|
|
|
return |
|
|
|
|