We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfd2c33 commit 551b500Copy full SHA for 551b500
routers/admin/admin.go
@@ -211,8 +211,7 @@ func Config(ctx *context.Context) {
211
ctx.Data["DisableRouterLog"] = setting.DisableRouterLog
212
ctx.Data["RunUser"] = setting.RunUser
213
ctx.Data["RunMode"] = strings.Title(macaron.Env)
214
- ver, _ := git.BinVersion()
215
- ctx.Data["GitVersion"] = ver
+ ctx.Data["GitVersion"], _ = git.BinVersion()
216
ctx.Data["RepoRootPath"] = setting.RepoRootPath
217
ctx.Data["CustomRootPath"] = setting.CustomPath
218
ctx.Data["StaticRootPath"] = setting.StaticRootPath
0 commit comments