diff options
author | Sean McGivern <sean@gitlab.com> | 2016-06-17 10:55:05 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-06-17 10:55:05 +0300 |
commit | 1022a1678b2b08fd226a5c88e4c472b8426de1c4 (patch) | |
tree | 7031381b212ec388236da82d6746e06a15007b3c /lib | |
parent | f011b86beb89557afdaf2b0ec5ae904d0be237d8 (diff) |
Limit push email diff size
Limit push email diff size to 30 files or 150 KB, whichever comes first.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/email/message/repository_push.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/email/message/repository_push.rb b/lib/gitlab/email/message/repository_push.rb index e2fee6b9f3e..047c77c6fc2 100644 --- a/lib/gitlab/email/message/repository_push.rb +++ b/lib/gitlab/email/message/repository_push.rb @@ -37,7 +37,7 @@ module Gitlab end def diffs - @diffs ||= (safe_diff_files(compare.diffs, diff_refs) if compare) + @diffs ||= (safe_diff_files(compare.diffs(max_files: 30), diff_refs) if compare) end def diffs_count |