diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2017-08-02 21:59:44 +0300 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2017-08-07 19:53:32 +0300 |
commit | c4f55ce32d6160b43c518954219cca69077b5001 (patch) | |
tree | 63307e0f6bb2bddbaf079f9414ca4f2cd9d67d1c /lib/gitlab/gitaly_client/repository_service.rb | |
parent | b12107a0b953b566cd58db30ae880800a4a695a6 (diff) |
Migrate Gitlab::Git::Repository#size to Gitaly
Closes gitaly#437
Diffstat (limited to 'lib/gitlab/gitaly_client/repository_service.rb')
-rw-r--r-- | lib/gitlab/gitaly_client/repository_service.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/gitaly_client/repository_service.rb b/lib/gitlab/gitaly_client/repository_service.rb index 13e75b256a7..79ce784f2f2 100644 --- a/lib/gitlab/gitaly_client/repository_service.rb +++ b/lib/gitlab/gitaly_client/repository_service.rb @@ -27,6 +27,11 @@ module Gitlab request = Gitaly::RepackIncrementalRequest.new(repository: @gitaly_repo) GitalyClient.call(@storage, :repository_service, :repack_incremental, request) end + + def repository_size + request = Gitaly::RepositorySizeRequest.new(repository: @gitaly_repo) + GitalyClient.call(@storage, :repository_service, :repository_size, request).size + end end end end |