提交 6cdb4553 编写于 作者: S Stan Hu

Return a default commit email if migration has not completed

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51530
上级 a30e266e
......@@ -635,7 +635,7 @@ class User < ActiveRecord::Base
# possibility of the commit_email column not existing.
def commit_email
return unless has_attribute?(:commit_email)
return self.email unless has_attribute?(:commit_email)
# The commit email is the same as the primary email if undefined
super.presence || self.email
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册