File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ type CachedCommit struct {
105105 TrustStatus string
106106}
107107
108- func convertCachedCommitsToGitCommits (cachedCommits []CachedCommit , repo * repo_model. Repository ) []* asymkey_model.SignCommit {
108+ func convertCachedCommitsToGitCommits (cachedCommits []CachedCommit ) []* asymkey_model.SignCommit {
109109 var gitCommits []* asymkey_model.SignCommit
110110 for _ , cc := range cachedCommits {
111111 objectID := git .MustIDFromString (cc .CommitID )
@@ -280,7 +280,7 @@ func LoadCommentPushCommits(ctx context.Context, c *issues_model.Comment) error
280280 defer closer .Close ()
281281
282282 if data .CachedCommits != nil {
283- convertedCommits := convertCachedCommitsToGitCommits (data .CachedCommits , c . Issue . Repo )
283+ convertedCommits := convertCachedCommitsToGitCommits (data .CachedCommits )
284284 c .Commits , err = git_service .ParseCommitsWithStatus (ctx , convertedCommits , c .Issue .Repo )
285285 } else {
286286 c .Commits , err = git_service .ConvertFromGitCommit (ctx , gitRepo .GetCommitsFromIDs (data .CommitIDs ), c .Issue .Repo )
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ import (
1313
1414 issues_model "code.gitea.io/gitea/models/issues"
1515 "code.gitea.io/gitea/models/unittest"
16-
1716 pull_service "code.gitea.io/gitea/services/pull"
17+
1818 "github.com/stretchr/testify/assert"
1919 "github.com/stretchr/testify/require"
2020)
You can’t perform that action at this time.
0 commit comments