Skip to content

commit: fix matchUsersWithCommitEmails#7561

Merged
unknwon merged 4 commits intogogs:mainfrom
athoik:bugfix-7404
Nov 1, 2023
Merged

commit: fix matchUsersWithCommitEmails#7561
unknwon merged 4 commits intogogs:mainfrom
athoik:bugfix-7404

Conversation

@athoik
Copy link
Contributor

@athoik athoik commented Oct 5, 2023

Set missing value on user variable, each time a new user is returned from db.

Fixes #7404

Describe the pull request

This commit fixes the email to user properly handing the returned data from database.
Currently every time we are returning a new user from database, we are caching the value.
But we are not setting value to variable u, resulting in missing link for user in commit log.
Second commit from same user on the list shown as expected.

Link to the issue: #7404

Checklist

Set missing value on user variable, each time a new user is returned from db.

Fixes gogs#7404
@athoik
Copy link
Contributor Author

athoik commented Oct 5, 2023

@unknwon please review and merge 👍

Copy link
Member

@unknwon unknwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@unknwon unknwon changed the title commit: fix matchUsersWithCommitEmails commit: fix matchUsersWithCommitEmails Nov 1, 2023
@unknwon unknwon merged commit c531da0 into gogs:main Nov 1, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

First commit in history page doesn't have link to user profile

2 participants