mirror of
https://github.com/go-gitea/gitea
synced 2025-11-01 20:08:25 +00:00
Remove wrong "git.DefaultContext" (#35364)
This commit is contained in:
@@ -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