diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-12 21:08:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-12 21:08:31 +0300 |
commit | 884a65481f9e5365329f4ba371ac5b813c45a2f9 (patch) | |
tree | cc4030d36a739eaf91543d270db9a33093f51446 /app/models/snippet.rb | |
parent | b17f0b91a66f2101a54dd1efed0c4973f04b1daf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r-- | app/models/snippet.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb index 7d2229140b8..9c1ad5bba8f 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -282,7 +282,9 @@ class Snippet < ApplicationRecord strong_memoize(:repository_size_checker) do ::Gitlab::RepositorySizeChecker.new( current_size_proc: -> { repository.size.megabytes }, - limit: Gitlab::CurrentSettings.snippet_size_limit + limit: Gitlab::CurrentSettings.snippet_size_limit, + total_repository_size_excess: nil, + additional_purchased_storage: nil ) end end |