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>2022-03-10 18:08:10 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-03-10 18:08:10 +0300
commit6ebe886c82111e1ab9e71d4c02a888d2312898bc (patch)
tree93775be141eb34e24c37c880e6d96b242267d3bc /lib/gitlab/diff
parente3624c5be1696597bc6b351f56f1a84c2b13211b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/diff')
-rw-r--r--lib/gitlab/diff/file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/diff/file.rb b/lib/gitlab/diff/file.rb
index 39250542260..89822af2455 100644
--- a/lib/gitlab/diff/file.rb
+++ b/lib/gitlab/diff/file.rb
@@ -383,7 +383,7 @@ module Gitlab
private
def diffable_by_attribute?
- repository.attributes(file_path).fetch('diff') { true }
+ repository.attributes(file_path).fetch('diff', true)
end
# NOTE: Files with unsupported encodings (e.g. UTF-16) are treated as binary by git, but they are recognized as text files during encoding detection. These files have `Binary files a/filename and b/filename differ' as their raw diff content which cannot be used. We need to handle this special case and avoid displaying incorrect diff.