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>2021-08-02 12:10:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-02 12:10:09 +0300
commit1930898566965dbc1bd779089ec9e58e17674268 (patch)
treea1e4384e4e8927431b637daa885dc8793cbb0035 /lib/gitlab/x509
parent2691cff8296517651e4bcd8adac09640f8cc28f5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/x509')
-rw-r--r--lib/gitlab/x509/commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/x509/commit.rb b/lib/gitlab/x509/commit.rb
index 5932170748a..91951a3e505 100644
--- a/lib/gitlab/x509/commit.rb
+++ b/lib/gitlab/x509/commit.rb
@@ -49,7 +49,7 @@ module Gitlab
def create_cached_signature!
return if attributes.nil?
- return X509CommitSignature.new(attributes) if Gitlab::Database.main.read_only?
+ return X509CommitSignature.new(attributes) if Gitlab::Database.read_only?
X509CommitSignature.safe_create!(attributes)
end