Move CommitService::CommitPatch to OPT_OUT
Part of gitlab-org/gitaly#324
This commit is contained in:
parent
2cdbfef109
commit
635d5bf2a2
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ module Gitlab
|
||||||
#
|
#
|
||||||
# Gitaly migration: https://gitlab.com/gitlab-org/gitaly/issues/324
|
# Gitaly migration: https://gitlab.com/gitlab-org/gitaly/issues/324
|
||||||
def to_diff
|
def to_diff
|
||||||
Gitlab::GitalyClient.migrate(:commit_patch) do |is_enabled|
|
Gitlab::GitalyClient.migrate(:commit_patch, status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |is_enabled|
|
||||||
if is_enabled
|
if is_enabled
|
||||||
@repository.gitaly_commit_client.patch(id)
|
@repository.gitaly_commit_client.patch(id)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue