diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2018-01-08 18:08:25 +0300 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2018-01-10 15:24:29 +0300 |
commit | 92d62ff69d5e92730937e909c7e216234d485ba1 (patch) | |
tree | 6ea7b36dd81dce73c8d0337b49c5ae15a1c80053 /lib/gitlab/gitaly_client/repository_service.rb | |
parent | be623ef3c1a867d23e9625fe372c17fcad3c47ce (diff) |
Migrate rebase_in_progress? to Gitaly
Closes gitaly#866
Diffstat (limited to 'lib/gitlab/gitaly_client/repository_service.rb')
-rw-r--r-- | lib/gitlab/gitaly_client/repository_service.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/gitlab/gitaly_client/repository_service.rb b/lib/gitlab/gitaly_client/repository_service.rb index 66006f5dc5b..72ee92e78dc 100644 --- a/lib/gitlab/gitaly_client/repository_service.rb +++ b/lib/gitlab/gitaly_client/repository_service.rb @@ -100,6 +100,23 @@ module Gitlab ) end + def rebase_in_progress?(rebase_id) + request = Gitaly::IsRebaseInProgressRequest.new( + repository: @gitaly_repo, + rebase_id: rebase_id.to_s + ) + + response = GitalyClient.call( + @storage, + :repository_service, + :is_rebase_in_progress, + request, + timeout: GitalyClient.default_timeout + ) + + response.in_progress + end + def fetch_source_branch(source_repository, source_branch, local_ref) request = Gitaly::FetchSourceBranchRequest.new( repository: @gitaly_repo, |