修复:贡献者email大小写不敏感
This commit is contained in:
parent
16bbcdca6d
commit
86bd9b67b6
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue