summaryrefslogtreecommitdiff
path: root/lib/api/commits.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-05-31 14:41:25 -0500
committerDouwe Maan <douwe@selenight.nl>2017-05-31 14:41:25 -0500
commit04cf618b6ff943527938f64a451a420b494b5a76 (patch)
tree115e9f7bae89e2a1eba453560cbe6ccb551693ba /lib/api/commits.rb
parentce869e3964a40b4cf04a803f5201d940ad61b13c (diff)
downloadgitlab-ce-04cf618b6ff943527938f64a451a420b494b5a76.tar.gz
Change no_limits to limitsdm-collapsed-blob
Diffstat (limited to 'lib/api/commits.rb')
-rw-r--r--lib/api/commits.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commits.rb b/lib/api/commits.rb
index 904993d1606..c6fc17cc391 100644
--- a/lib/api/commits.rb
+++ b/lib/api/commits.rb
@@ -176,7 +176,7 @@ module API
}
if params[:path]
- commit.raw_diffs(no_limits: true).each do |diff|
+ commit.raw_diffs(limits: false).each do |diff|
next unless diff.new_path == params[:path]
lines = Gitlab::Diff::Parser.new.parse(diff.diff.each_line)