lib/gitlab_git/attributes.rb in gitlab_git-10.6.8 vs lib/gitlab_git/attributes.rb in gitlab_git-10.7.0

- old
+ new

@@ -97,9 +97,11 @@ return unless File.exist?(full_path) File.open(full_path, 'r') do |handle| handle.each_line do |line| + break unless line.valid_encoding? + yield line.strip end end end