Skip to content

Commit b880209

Browse files
committed
Add check for co-author email = author email
1 parent 22d8652 commit b880209

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

services/repository/contributors_graph.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ func getExtendedCommitStats(repo *git.Repository, revision string /*, limit int
161161
break
162162
}
163163
coAuthorName, coAuthorEmail, err := util.ParseCommitTrailerValueWithAuthor(line)
164+
if authorEmail == coAuthorEmail {
165+
// Authors shouldn't be co-authors too.
166+
continue
167+
}
164168
if err != nil {
165169
continue
166170
}
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
79a64f10ca2ea21fa2a94102751f0dd9f2c15ce8
1+
f7eee4e802f39ec0dadc5f872c86d4ee440b741d

0 commit comments

Comments
 (0)