Merge branch '54953-fix-commit_email_hostname-accessor-in-fake_application_settings' into 'master'

Add FakeApplicationSettings#commit_email_hostname

Closes #54953

See merge request gitlab-org/gitlab-ce!23939
This commit is contained in:
Stan Hu 2018-12-19 20:33:14 +00:00
commit 2a9ba34dde
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
title: Fix a 500 error that could occur until all migrations are done
merge_request: 23939
author:
type: fixed

View File

@ -37,5 +37,9 @@ module Gitlab
def pick_repository_storage
repository_storages.sample
end
def commit_email_hostname
super.presence || ApplicationSetting.default_commit_email_hostname
end
end
end