diff options
Diffstat (limited to 'routers/repo/commit.go')
-rw-r--r-- | routers/repo/commit.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 4eb37e6b..c102ceae 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -174,6 +174,13 @@ func Diff(ctx *context.Context) { } } + ec, err := ctx.Repo.GetEditorconfig() + if err != nil && !git.IsErrNotExist(err) { + ctx.Handle(500, "ErrGettingEditorconfig", err) + return + } + ctx.Data["Editorconfig"] = ec + ctx.Data["CommitID"] = commitID ctx.Data["IsSplitStyle"] = ctx.Query("style") == "split" ctx.Data["Username"] = userName |