unset XDG_HOME_CONFIG as gitea manages configuration locations (#33067)

unset XDG_CONFIG_HOME early to enable gitea to manage git configuration.
simple error checking to satisfy the linting. Closes #33039

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
JonRB
2025-01-01 22:37:35 +00:00
repo.diff.committed_by GitHub
repo.diff.parent c1167709ed
repo.diff.commit 233b7959e0
repo.diff.stats_desc%!(EXTRA int=3, int=7, int=0)

repo.diff.view_file

@@ -165,6 +165,7 @@ func NewMainApp(appVer AppVersion) *cli.App {
app.Commands = append(app.Commands, subCmdWithConfig...)
app.Commands = append(app.Commands, subCmdStandalone...)
setting.InitGiteaEnvVars()
return app
}