diff options
author | JonRB <4564448+eeyrjmr@users.noreply.github.com> | 2025-01-01 22:37:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-02 06:37:35 +0800 |
commit | 233b7959e0518c47ef83c6a80c617546983433eb (patch) | |
tree | 11b36570c95d9380c909c6c62edd3afb2d845a64 /models | |
parent | c1167709ed1cba035d8c0809a6da6d5d1c8638e5 (diff) | |
download | gitea-233b7959e0518c47ef83c6a80c617546983433eb.tar.gz gitea-233b7959e0518c47ef83c6a80c617546983433eb.zip |
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>
Diffstat (limited to 'models')
-rw-r--r-- | models/unittest/testdb.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/unittest/testdb.go b/models/unittest/testdb.go index 75044d19e8..43d084845c 100644 --- a/models/unittest/testdb.go +++ b/models/unittest/testdb.go @@ -59,6 +59,7 @@ func InitSettings() { _ = hash.Register("dummy", hash.NewDummyHasher) setting.PasswordHashAlgo, _ = hash.SetDefaultPasswordHashAlgorithm("dummy") + setting.InitGiteaEnvVars() } // TestOptions represents test options |