diff options
Diffstat (limited to 'routers/repo/view.go')
-rw-r--r-- | routers/repo/view.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go index 9c495b701c..e685597a55 100644 --- a/routers/repo/view.go +++ b/routers/repo/view.go @@ -225,6 +225,12 @@ func Home(ctx *context.Context) { ctx.Data["Username"] = userName ctx.Data["Reponame"] = repoName + ec, err := ctx.Repo.GetEditorconfig() + if err != nil && !git.IsErrNotExist(err) { + ctx.Handle(500, "ErrGettingEditorconfig", err) + return + } + ctx.Data["Editorconfig"] = ec var treenames []string paths := make([]string, 0) |