Skip to content

Commit 768c70c

Browse files
committed
remove unnecessary change
1 parent b821257 commit 768c70c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

modules/gitrepo/main_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"path/filepath"
99
"testing"
1010

11-
"code.gitea.io/gitea/modules/git"
1211
"code.gitea.io/gitea/modules/setting"
1312
)
1413

@@ -19,20 +18,13 @@ const (
1918
func TestMain(m *testing.M) {
2019
originalRepoRootPath := setting.RepoRootPath
2120
originalHomePath := setting.Git.HomePath
22-
originalGitPath := setting.Git.Path
2321
defer func() {
2422
setting.RepoRootPath = originalRepoRootPath
2523
setting.Git.HomePath = originalHomePath
26-
setting.Git.Path = originalGitPath
2724
}()
2825

2926
setting.RepoRootPath, _ = filepath.Abs(testReposDir)
3027
setting.Git.HomePath = filepath.Join(setting.RepoRootPath, ".home")
31-
setting.Git.Path = "git"
32-
33-
if err := git.InitSimple(); err != nil {
34-
panic(err)
35-
}
3628

3729
exitStatus := m.Run()
3830
os.Exit(exitStatus)

0 commit comments

Comments
 (0)