Merge branch 'reenable-gitaly-commit-raw-diffs' into 'master'

Re-enable Gitaly commit_raw_diffs migration

See merge request !11970
This commit is contained in:
Robert Speicher 2017-06-07 16:35:39 +00:00
commit 6d01535e9a
1 changed files with 5 additions and 6 deletions

View File

@ -326,12 +326,11 @@ class Commit
end
def raw_diffs(*args)
# Uncomment when https://gitlab.com/gitlab-org/gitaly/merge_requests/170 is merged
# if Gitlab::GitalyClient.feature_enabled?(:commit_raw_diffs)
# Gitlab::GitalyClient::Commit.new(project.repository).diff_from_parent(self, *args)
# else
raw.diffs(*args)
# end
if Gitlab::GitalyClient.feature_enabled?(:commit_raw_diffs)
Gitlab::GitalyClient::Commit.new(project.repository).diff_from_parent(self, *args)
else
raw.diffs(*args)
end
end
def raw_deltas