summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-04-05 15:27:09 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-04-06 13:23:22 -0300
commite892eeb5460078d127070f51c31bd5fc41a2c876 (patch)
tree4bd6043057c1307a0525c9e0478120cdfc6ffe2a /lib
parentb81c6f142c38c9005b56ee5cf3677dac1b1adca8 (diff)
downloadgitlab-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.rb6
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