Skip to content

Commit d22836f

Browse files
committed
fix gogit build
1 parent 6f2dbe0 commit d22836f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: modules/git/repo_language_stats_gogit.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ package git
77

88
import (
99
"bytes"
10+
"context"
1011
"io"
1112

1213
"code.gitea.io/gitea/modules/analyze"
@@ -19,7 +20,7 @@ import (
1920
)
2021

2122
// GetLanguageStats calculates language stats for git repository at specified commit
22-
func (repo *Repository) GetLanguageStats(commitID string) (map[string]int64, error) {
23+
func (repo *Repository) GetLanguageStats(ctx context.Context, commitID string) (map[string]int64, error) {
2324
r, err := git.PlainOpen(repo.Path)
2425
if err != nil {
2526
return nil, err
@@ -40,7 +41,7 @@ func (repo *Repository) GetLanguageStats(commitID string) (map[string]int64, err
4041
return nil, err
4142
}
4243

43-
checker, deferable := repo.CheckAttributeReader(commitID)
44+
checker, deferable := repo.CheckAttributeReader(ctx, commitID)
4445
defer deferable()
4546

4647
// sizes contains the current calculated size of all files by language

0 commit comments

Comments
 (0)