diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-04-05 15:27:09 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-04-06 13:23:22 -0300 |
commit | e892eeb5460078d127070f51c31bd5fc41a2c876 (patch) | |
tree | 4bd6043057c1307a0525c9e0478120cdfc6ffe2a /lib | |
parent | b81c6f142c38c9005b56ee5cf3677dac1b1adca8 (diff) | |
download | gitlab-ce-e892eeb5460078d127070f51c31bd5fc41a2c876.tar.gz |
Add calculate_checksum method to the Gitaly repository client
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/gitaly_client/repository_service.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/gitaly_client/repository_service.rb b/lib/gitlab/gitaly_client/repository_service.rb index b5a734aaef6..6441065f5fe 100644 --- a/lib/gitlab/gitaly_client/repository_service.rb +++ b/lib/gitlab/gitaly_client/repository_service.rb @@ -262,6 +262,12 @@ module Gitlab response.license_short_name.presence end + + def calculate_checksum + request = Gitaly::CalculateChecksumRequest.new(repository: @gitaly_repo) + response = GitalyClient.call(@storage, :repository_service, :calculate_checksum, request) + response.checksum.presence + end end end end |