mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 09:53:10 +02:00
Remove wrong "git.DefaultContext" (#35364)
This commit is contained in:
1 parent
e837c998b7
commit
60246730b5
71 files changed
+384
-476
No files matched your search
@@ -187,7 +187,7 @@ func testEditorWebGitCommitEmail(t *testing.T) {
|
||||
require.True(t, user.KeepEmailPrivate)
|
||||
|
||||
repo1 := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1})
|
||||
gitRepo, _ := git.OpenRepository(git.DefaultContext, repo1.RepoPath())
|
||||
gitRepo, _ := git.OpenRepository(t.Context(), repo1.RepoPath())
|
||||
defer gitRepo.Close()
|
||||
getLastCommit := func(t *testing.T) *git.Commit {
|
||||
c, err := gitRepo.GetBranchCommit("master")
|
||||
|
||||
Reference in new issue
Block a user