diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go index 4d17be3758..711a1e1e12 100644 --- a/routers/web/repo/repo.go +++ b/routers/web/repo/repo.go @@ -231,6 +231,8 @@ func CreatePost(ctx *context.Context) { ctx.Data["CanCreateRepo"] = ctx.Doer.CanCreateRepo() ctx.Data["MaxCreationLimit"] = ctx.Doer.MaxCreationLimit() + ctx.Data["SupportedObjectFormats"] = git.SupportedObjectFormats + ctx.Data["DefaultObjectFormat"] = git.Sha1ObjectFormat ctxUser := checkContextUser(ctx, form.UID) if ctx.Written() { diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 3afd978ee9..d3a11e7ed5 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -69,7 +69,7 @@