Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gpt
large_projects
gitlabhq1
Commits
a357ecdb
Commit
a357ecdb
authored
8 years ago
by
Andrew Newdigate
Browse files
Options
Download
Email Patches
Plain Diff
Instantiate the stub using GitalyClient.stub instead of the old way
parent
87d83795
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/gitlab/gitaly_client/commit.rb
lib/gitlab/gitaly_client/commit.rb
+1
-1
No files found.
lib/gitlab/gitaly_client/commit.rb
View file @
a357ecdb
...
...
@@ -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
=
Gitaly
Client
.
stub
(
:diff
,
repository
.
storage
)
parent
=
commit
.
parents
[
0
]
parent_id
=
parent
?
parent
.
id
:
EMPTY_TREE_ID
request
=
Gitaly
::
CommitDiffRequest
.
new
(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment