From 6bf78d2b576a5caa77a670db9bbf2572d0272f25 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 17 Jun 2020 16:53:55 -0400 Subject: Global default branch setting (#11918) * Global default branch setting * add to app.ini example per @silverwind * update per @lunny Co-authored-by: John Olheiser --- routers/repo/repo.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routers/repo/repo.go') diff --git a/routers/repo/repo.go b/routers/repo/repo.go index 4ded75db6c..27c8ff1e03 100644 --- a/routers/repo/repo.go +++ b/routers/repo/repo.go @@ -134,6 +134,7 @@ func Create(ctx *context.Context) { ctx.Data["readme"] = "Default" ctx.Data["private"] = getRepoPrivate(ctx) ctx.Data["IsForcedPrivate"] = setting.Repository.ForcePrivate + ctx.Data["default_branch"] = setting.Repository.DefaultBranch ctxUser := checkContextUser(ctx, ctx.QueryInt64("org")) if ctx.Written() { -- cgit v1.2.3