summaryrefslogtreecommitdiff
path: root/app/contexts/commit_load_context.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/contexts/commit_load_context.rb')
-rw-r--r--app/contexts/commit_load_context.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/contexts/commit_load_context.rb b/app/contexts/commit_load_context.rb
index e43e5a07805..a14291b9b0d 100644
--- a/app/contexts/commit_load_context.rb
+++ b/app/contexts/commit_load_context.rb
@@ -9,7 +9,7 @@ class CommitLoadContext < BaseContext
status: :ok
}
- commit = project.commit(params[:id])
+ commit = project.repository.commit(params[:id])
if commit
commit = CommitDecorator.decorate(commit)