|
@@ -200,7 +200,8 @@ func matchUsersWithCommitEmails(ctx gocontext.Context, oldCommits []*git.Commit)
|
|
for i := range oldCommits {
|
|
for i := range oldCommits {
|
|
var u *db.User
|
|
var u *db.User
|
|
if v, ok := emailToUsers[oldCommits[i].Author.Email]; !ok {
|
|
if v, ok := emailToUsers[oldCommits[i].Author.Email]; !ok {
|
|
- emailToUsers[oldCommits[i].Author.Email], _ = db.Users.GetByEmail(ctx, oldCommits[i].Author.Email)
|
|
|
|
|
|
+ u, _ = db.Users.GetByEmail(ctx, oldCommits[i].Author.Email)
|
|
|
|
+ emailToUsers[oldCommits[i].Author.Email] = u
|
|
} else {
|
|
} else {
|
|
u = v
|
|
u = v
|
|
}
|
|
}
|