summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-09-19 01:25:23 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-09-19 01:29:32 +0800
commit6a4ee9aa7140862075cafae1ddebd133eec52b5b (patch)
tree9890bb5c906a0d6e207149ae5fe1df84d213fa7c /config
parent9ae92b8caa6c11d8860f86b7d6378062215d1b72 (diff)
downloadgitlab-ce-6a4ee9aa7140862075cafae1ddebd133eec52b5b.tar.gz
Allow simple ivar ||= form. Update accordingly
Diffstat (limited to 'config')
-rw-r--r--config/initializers/rugged_use_gitlab_git_attributes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/rugged_use_gitlab_git_attributes.rb b/config/initializers/rugged_use_gitlab_git_attributes.rb
index b839fd177af..abfa2c354cd 100644
--- a/config/initializers/rugged_use_gitlab_git_attributes.rb
+++ b/config/initializers/rugged_use_gitlab_git_attributes.rb
@@ -11,10 +11,10 @@
# anyway, and there is no great efficiency gain from just fetching the listed
# attributes with our implementation, so we ignore the additional arguments.
#
-# rubocop:disable Cop/ModuleWithInstanceVariables
module Rugged
class Repository
module UseGitlabGitAttributes
+ # rubocop:disable Cop/ModuleWithInstanceVariables
def fetch_attributes(name, *)
@attributes ||= Gitlab::Git::Attributes.new(path)
@attributes.attributes(name)