mirror of
https://github.com/go-gitea/gitea
synced 2024-11-21 23:21:08 +01:00
Add check for co-author email = author email
This commit is contained in:
parent
22d8652f64
commit
b8802097af
4 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
79a64f10ca2ea21fa2a94102751f0dd9f2c15ce8
|
||||
f7eee4e802f39ec0dadc5f872c86d4ee440b741d
|
||||
|
|
Loading…
Reference in a new issue