diff options
Diffstat (limited to 'routers/web/admin/admin.go')
-rw-r--r-- | routers/web/admin/admin.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/routers/web/admin/admin.go b/routers/web/admin/admin.go index 78347e67c4..24c07b5c1c 100644 --- a/routers/web/admin/admin.go +++ b/routers/web/admin/admin.go @@ -247,9 +247,8 @@ func Config(ctx *context.Context) { ctx.Data["DisableRouterLog"] = setting.DisableRouterLog ctx.Data["RunUser"] = setting.RunUser ctx.Data["RunMode"] = util.ToTitleCase(setting.RunMode) - if version, err := git.LocalVersion(); err == nil { - ctx.Data["GitVersion"] = version.Original() - } + ctx.Data["GitVersion"] = git.VersionInfo() + ctx.Data["RepoRootPath"] = setting.RepoRootPath ctx.Data["CustomRootPath"] = setting.CustomPath ctx.Data["StaticRootPath"] = setting.StaticRootPath |