1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-12 13:37:20 +00:00

Add git.HOME_PATH

This commit is contained in:
wxiaoguang
2022-06-24 14:03:53 +08:00
parent 55a22d1136
commit 7f4b6893ec
7 changed files with 31 additions and 13 deletions

View File

@ -107,6 +107,8 @@ func MainTest(m *testing.M, testOpts *TestOptions) {
setting.Packages.Storage.Path = filepath.Join(setting.AppDataPath, "packages")
setting.Git.HomePath = filepath.Join(setting.AppDataPath, "home")
if err = storage.Init(); err != nil {
fatalTestError("storage.Init: %v\n", err)
}