diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-08-12 01:44:25 +0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-08-17 20:44:30 +0300 |
commit | c463a834058b5cede382334932891cf3e4cdb35d (patch) | |
tree | f2866375c93cdcd17b50bb3fd4e73539d31e1a42 /lib/gitlab/gitaly_client/repository_service.rb | |
parent | 029670020761e827dc25374cebb1cb299c1c5ef5 (diff) |
Incorporate RepositoryService.ApplyGitattributes Gitaly RPC
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 6ad97e62941..a74a6dc6e78 100644 --- a/lib/gitlab/gitaly_client/repository_service.rb +++ b/lib/gitlab/gitaly_client/repository_service.rb @@ -32,6 +32,11 @@ module Gitlab request = Gitaly::RepositorySizeRequest.new(repository: @gitaly_repo) GitalyClient.call(@storage, :repository_service, :repository_size, request).size end + + def apply_gitattributes(revision) + request = Gitaly::ApplyGitattributesRequest.new(repository: @gitaly_repo, revision: revision) + GitalyClient.call(@storage, :repository_service, :apply_gitattributes, request) + end end end end |