Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/resolvers/branch_commit_resolver.rb')
-rw-r--r--app/graphql/resolvers/branch_commit_resolver.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/graphql/resolvers/branch_commit_resolver.rb b/app/graphql/resolvers/branch_commit_resolver.rb
index 11c49e17bc5..4f6062a4781 100644
--- a/app/graphql/resolvers/branch_commit_resolver.rb
+++ b/app/graphql/resolvers/branch_commit_resolver.rb
@@ -10,8 +10,9 @@ module Resolvers
return unless branch
commit = branch.dereferenced_target
+ project = Project.find_by_full_path(commit.repository.gl_project_path)
- ::Commit.new(commit, context[:branch_project]) if commit
+ ::Commit.new(commit, project) if commit
end
end
end