File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 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 (
1918func 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 )
You can’t perform that action at this time.
0 commit comments