0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-24 19:12:51 +01:00

Add check for co-author email = author email

This commit is contained in:
Kemal Zebari 2024-10-25 23:31:30 -07:00
parent 22d8652f64
commit b8802097af
4 changed files with 5 additions and 1 deletions

View file

@ -161,6 +161,10 @@ func getExtendedCommitStats(repo *git.Repository, revision string /*, limit int
break
}
coAuthorName, coAuthorEmail, err := util.ParseCommitTrailerValueWithAuthor(line)
if authorEmail == coAuthorEmail {
// Authors shouldn't be co-authors too.
continue
}
if err != nil {
continue
}

View file

@ -1 +1 @@
79a64f10ca2ea21fa2a94102751f0dd9f2c15ce8
f7eee4e802f39ec0dadc5f872c86d4ee440b741d