Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-12-19 23:33:14 +0300
committerGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-01-02 20:36:39 +0300
commit2e81e2f51c75320081a06dd94fdfa4745b9e80cd (patch)
treef4887d2c38196cf0f08ecdf2f417023e217e9d9f /lib
parentd0e3e197046180b527655708d26d2a9317dcd686 (diff)
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 (cherry picked from commit 2a9ba34dde0058c94caa696b2be1e53687faf0d0) ecb847fd Add FakeApplicationSettings#commit_email_hostname
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/fake_application_settings.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/fake_application_settings.rb b/lib/gitlab/fake_application_settings.rb
index db1aeeea8d3..bd806269bf0 100644
--- a/lib/gitlab/fake_application_settings.rb
+++ b/lib/gitlab/fake_application_settings.rb
@@ -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