From 86bd9b67b6fd6e3f0f802865fccb95bb043cc14c Mon Sep 17 00:00:00 2001 From: yystopf Date: Fri, 8 Dec 2023 09:51:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E8=B4=A1=E7=8C=AE?= =?UTF-8?q?=E8=80=85email=E5=A4=A7=E5=B0=8F=E5=86=99=E4=B8=8D=E6=95=8F?= =?UTF-8?q?=E6=84=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/git/repo_contributors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/git/repo_contributors.go b/modules/git/repo_contributors.go index e75b532..622dcf0 100644 --- a/modules/git/repo_contributors.go +++ b/modules/git/repo_contributors.go @@ -118,8 +118,8 @@ func GetRepoContributorsNew(repo *gitea_git.Repository, page, pageSize int) (int if err != nil { return err } - name := l[strings.Index(l, "\t")+1 : strings.Index(l, " <")] - email := l[strings.Index(l, "<")+1 : strings.Index(l, ">")] + name := strings.ToLower(l[strings.Index(l, "\t")+1 : strings.Index(l, " <")]) + email := strings.ToLower(l[strings.Index(l, "<")+1 : strings.Index(l, ">")]) totalContributions += commitsInt // committer is not system user if existedContributorInfo, ok := contributorInfoHash[email]; ok {