expect(json_response['message']).toeql('Your push has been rejected, because this repository has exceeded its size limit of 99 MB by 1 MB. Please contact your GitLab administrator for more information.')
expect(json_response['message']).toeql('Your push has been rejected, because this repository has exceeded its size limit of 100 MB by 160 MB. Please contact your GitLab administrator for more information.')
"This merge request cannot be merged, #{base_message}"
"This merge request cannot be merged, #{base_message}"
end
end
defpush_error(exceeded_size=nil)
defpush_error(change_size=0)
"Your push has been rejected, #{base_message(exceeded_size)}. #{more_info_message}"
"Your push has been rejected, #{base_message(change_size)}. #{more_info_message}"
end
end
defnew_changes_error
defnew_changes_error
...
@@ -32,17 +32,13 @@ module Gitlab
...
@@ -32,17 +32,13 @@ module Gitlab
end
end
defabove_size_limit_message
defabove_size_limit_message
"The size of this repository (#{formatted(current_size)}) exceeds the limit of #{formatted(limit)} by #{formatted(size_to_remove)}. You won't be able to push new code to this project. #{more_info_message}"
"The size of this repository (#{formatted(current_size)}) exceeds the limit of #{formatted(limit)} by #{formatted(exceeded_size)}. You won't be able to push new code to this project. #{more_info_message}"
end
end
private
private
defbase_message(exceeded_size=nil)
defbase_message(change_size=0)
"because this repository has exceeded its size limit of #{formatted(limit)} by #{formatted(size_to_remove(exceeded_size))}"
"because this repository has exceeded its size limit of #{formatted(limit)} by #{formatted(exceeded_size(change_size))}"