summaryrefslogtreecommitdiff
path: root/lib/api/project_hooks.rb
diff options
context:
space:
mode:
authorAlex Lossent <alexandre.lossent@cern.ch>2015-04-27 18:06:51 +0200
committerAlex Lossent <alexandre.lossent@cern.ch>2015-05-05 18:51:12 +0200
commitaffd049dc4427d749b97eaee37a5d54873016657 (patch)
tree94541bfb05f098f67cf11d72eede4791d6e5b801 /lib/api/project_hooks.rb
parent5bff135fb3dbd1af855f8cd94b4bed76d2cbc42e (diff)
downloadgitlab-ce-affd049dc4427d749b97eaee37a5d54873016657.tar.gz
Improve handling of large diffs
Diffs with a large number of changed lines time out (504 HTTP error) or generate a HTML page that's so heavy web browsers struggle with it. https://github.com/gitlabhq/gitlabhq/pull/5014 introduced limits on commit line count so that only a safe portion is rendered. This was later undone by code refactoring in be5b6db8, e0eb4803 and c741fcab. This patch re-introduces a safe limit on number of lines.
Diffstat (limited to 'lib/api/project_hooks.rb')
0 files changed, 0 insertions, 0 deletions