Add FakeApplicationSettings#commit_email_hostname

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2018-12-19 17:39:45 +01:00
parent 806ea5762b
commit ecb847fd30
No known key found for this signature in database
GPG key ID: 98DFFD1C0C62B70B
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