mirror of https://github.com/gogs/gogs.git
commit: fix `matchUsersWithCommitEmails` (#7561)
Co-authored-by: Joe Chen <jc@unknwon.io>pull/7590/head
parent
bc1b5e52a9
commit
c531da02ca
|
@ -7,6 +7,7 @@ All notable changes to Gogs are documented in this file.
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Submodules using `ssh://` protocol and a port number are not rendered correctly. [#4941](https://github.com/gogs/gogs/issues/4941)
|
- Submodules using `ssh://` protocol and a port number are not rendered correctly. [#4941](https://github.com/gogs/gogs/issues/4941)
|
||||||
|
- Missing link to user profile on the first commit in commits history page. [#7404](https://github.com/gogs/gogs/issues/7404)
|
||||||
|
|
||||||
## 0.13.0
|
## 0.13.0
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue