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
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-16 00:09:18 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-16 00:09:18 +0300
commit2eda658f34763b651b198365550c67d073439a12 (patch)
treea11bb3761fd8dd2ac76855810efbdc4d1ecc74ba /lib/gitlab/current_settings.rb
parent09093c1278f2b3347465bf5939fda215592f0d1f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/current_settings.rb')
-rw-r--r--lib/gitlab/current_settings.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/current_settings.rb b/lib/gitlab/current_settings.rb
index 891fd8c1bb5..2b08d3c63bb 100644
--- a/lib/gitlab/current_settings.rb
+++ b/lib/gitlab/current_settings.rb
@@ -43,7 +43,7 @@ module Gitlab
end
def uncached_application_settings
- return fake_application_settings unless connect_to_db?
+ return fake_application_settings if Gitlab::Runtime.rake? && !connect_to_db?
current_settings = ::ApplicationSetting.current
# If there are pending migrations, it's possible there are columns that