diff options
author | Alex Lossent <alexandre.lossent@cern.ch> | 2015-04-27 18:06:51 +0200 |
---|---|---|
committer | Alex Lossent <alexandre.lossent@cern.ch> | 2015-05-05 18:51:12 +0200 |
commit | affd049dc4427d749b97eaee37a5d54873016657 (patch) | |
tree | 94541bfb05f098f67cf11d72eede4791d6e5b801 /lib/api/project_hooks.rb | |
parent | 5bff135fb3dbd1af855f8cd94b4bed76d2cbc42e (diff) | |
download | gitlab-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