summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-09-18 12:07:52 +0000
committerDouwe Maan <douwe@gitlab.com>2018-09-18 12:07:52 +0000
commita2a00a5e6d1ba3d2ebfafcff57e211cb1b65c00a (patch)
treed6b3b50fe16d2c7125f6a95a651c542cfd2e2d91 /app/models
parent139a14b6dfc9862771d52091d16031f9e03ca192 (diff)
parent5a883915793f0f89f850d5393dce497ff9c5f893 (diff)
downloadgitlab-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.rb7
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