Skip to content

Commit 3d67efd

Browse files
committed
follow wxiaoguang's suggestion
1 parent 768c70c commit 3d67efd

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

modules/gitrepo/main_test.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ const (
1616
)
1717

1818
func TestMain(m *testing.M) {
19-
originalRepoRootPath := setting.RepoRootPath
20-
originalHomePath := setting.Git.HomePath
21-
defer func() {
22-
setting.RepoRootPath = originalRepoRootPath
23-
setting.Git.HomePath = originalHomePath
24-
}()
25-
2619
setting.RepoRootPath, _ = filepath.Abs(testReposDir)
2720
setting.Git.HomePath = filepath.Join(setting.RepoRootPath, ".home")
2821

0 commit comments

Comments
 (0)