summaryrefslogtreecommitdiffstats
path: root/routers/repo/repo.go
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2020-06-17 16:53:55 -0400
committerGitHub <noreply@github.com>2020-06-17 16:53:55 -0400
commit6bf78d2b576a5caa77a670db9bbf2572d0272f25 (patch)
tree36b547e948ac0c1aed41c5088f397ea50fa905ee /routers/repo/repo.go
parent9e6a79bea9d7911c81b86a6d3715d340fc19032a (diff)
downloadgitea-6bf78d2b576a5caa77a670db9bbf2572d0272f25.tar.gz
gitea-6bf78d2b576a5caa77a670db9bbf2572d0272f25.zip
Global default branch setting (#11918)
* Global default branch setting * add to app.ini example per @silverwind * update per @lunny Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r--routers/repo/repo.go1
1 files changed, 1 insertions, 0 deletions
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() {