Commit a357ecdb authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

Instantiate the stub using GitalyClient.stub instead of the old way

parent 87d83795
......@@ -27,7 +27,7 @@ module Gitlab
def diff_from_parent(commit, options = {})
repository = commit.project.repository
gitaly_repo = repository.gitaly_repository
stub = Gitaly::Diff::Stub.new(nil, nil, channel_override: repository.gitaly_channel)
stub = GitalyClient.stub(:diff, repository.storage)
parent = commit.parents[0]
parent_id = parent ? parent.id : EMPTY_TREE_ID
request = Gitaly::CommitDiffRequest.new(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment