Move CommitService::CommitPatch to OPT_OUT

Part of gitlab-org/gitaly#324
This commit is contained in:
Zeger-Jan van de Weg 2018-03-06 15:03:59 +01:00
parent 2cdbfef109
commit 635d5bf2a2
No known key found for this signature in database
GPG key ID: 65F6A8D64A88ABAC

View file

@ -347,7 +347,7 @@ module Gitlab
#
# Gitaly migration: https://gitlab.com/gitlab-org/gitaly/issues/324
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
@repository.gitaly_commit_client.patch(id)
else