修复:贡献者email大小写不敏感

This commit is contained in:
yystopf 2023-12-08 09:51:10 +08:00
parent 16bbcdca6d
commit 86bd9b67b6
1 changed files with 2 additions and 2 deletions

View File

@ -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 {