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>
unparam
DEFAULT_MIRROR_REPO_UNITS
DEFAULT_TEMPLATE_REPO_UNITS