aboutsummaryrefslogtreecommitdiffstats
path: root/models/unittest/testdb.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/unittest/testdb.go')
-rw-r--r--models/unittest/testdb.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/unittest/testdb.go b/models/unittest/testdb.go
index baea46dbce..7f9af55374 100644
--- a/models/unittest/testdb.go
+++ b/models/unittest/testdb.go
@@ -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)
}