diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-09-18 12:07:52 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-09-18 12:07:52 +0000 |
commit | a2a00a5e6d1ba3d2ebfafcff57e211cb1b65c00a (patch) | |
tree | d6b3b50fe16d2c7125f6a95a651c542cfd2e2d91 /app/models | |
parent | 139a14b6dfc9862771d52091d16031f9e03ca192 (diff) | |
parent | 5a883915793f0f89f850d5393dce497ff9c5f893 (diff) | |
download | gitlab-ce-a2a00a5e6d1ba3d2ebfafcff57e211cb1b65c00a.tar.gz |
Merge branch '51564-fix-commit-email-usage' into 'master'
Respect the user commit email in more places
Closes #51564
See merge request gitlab-org/gitlab-ce!21773
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project_wiki.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/models/project_wiki.rb b/app/models/project_wiki.rb index f4b3421f04b..761359b3c9f 100644 --- a/app/models/project_wiki.rb +++ b/app/models/project_wiki.rb @@ -184,11 +184,12 @@ class ProjectWiki def commit_details(action, message = nil, title = nil) commit_message = message || default_message(action, title) + git_user = Gitlab::Git::User.from_gitlab(@user) Gitlab::Git::Wiki::CommitDetails.new(@user.id, - @user.username, - @user.name, - @user.email, + git_user.username, + git_user.name, + git_user.email, commit_message) end |