diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go index 4d17be375..711a1e1e1 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 3afd978ee..d3a11e7ed 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -69,7 +69,7 @@