|
|
|
@ -228,8 +228,12 @@ func CreatePost(ctx *context.Context) {
|
|
|
|
|
ctx.Data["Licenses"] = repo_module.Licenses
|
|
|
|
|
ctx.Data["Readmes"] = repo_module.Readmes
|
|
|
|
|
|
|
|
|
|
// the logic is still buggy, the complete fix is in 1.24
|
|
|
|
|
ctx.Data["IsForcedPrivate"] = setting.Repository.ForcePrivate
|
|
|
|
|
ctx.Data["CanCreateRepo"] = ctx.Doer.CanCreateRepo()
|
|
|
|
|
ctx.Data["MaxCreationLimit"] = ctx.Doer.MaxCreationLimit()
|
|
|
|
|
ctx.Data["SupportedObjectFormats"] = git.DefaultFeatures().SupportedObjectFormats
|
|
|
|
|
ctx.Data["DefaultObjectFormat"] = git.Sha1ObjectFormat
|
|
|
|
|
|
|
|
|
|
ctxUser := checkContextUser(ctx, form.UID)
|
|
|
|
|
if ctx.Written() {
|
|
|
|
|