lib/gitlab_git/repository.rb in gitlab_git-8.1.0 vs lib/gitlab_git/repository.rb in gitlab_git-8.2.0

- old
+ new

@@ -1124,12 +1124,12 @@ yielder.yield [nil, i] end # Yield the actual file contents count = 0 - file_contents.each_line.each_with_index do |line, i| + file_contents.each_line do |line| line.chomp! - yielder.yield [line, i] + yielder.yield [line, count] count += 1 end # Yield fake 'after' lines for the last line of file_contents (count+1..count+SEARCH_CONTEXT_LINES).each do |i|