summaryrefslogtreecommitdiff
path: root/app/controllers/projects/commit_controller.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-04-01 10:10:39 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-04-01 10:10:39 +0200
commitfeec3a45eb517607d96f5553f36e7d35c97520ba (patch)
treedb037849302326f1ecdd2916687fadd00330cdba /app/controllers/projects/commit_controller.rb
parent95b010fb73832b1bcfba884b9bcfd87d2954e44c (diff)
downloadgitlab-ce-ci-changes-refactor.tar.gz
Show pipelinesci-changes-refactor
Diffstat (limited to 'app/controllers/projects/commit_controller.rb')
-rw-r--r--app/controllers/projects/commit_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/projects/commit_controller.rb b/app/controllers/projects/commit_controller.rb
index ef20281e82f..623856f282f 100644
--- a/app/controllers/projects/commit_controller.rb
+++ b/app/controllers/projects/commit_controller.rb
@@ -96,6 +96,11 @@ class Projects::CommitController < Projects::ApplicationController
def ci_commits
@ci_commits ||= project.ci_commits.where(sha: commit.sha)
+ if params[:commit_id]
+ @ci_commits.where(id: params[:commit_id].to_i)
+ else
+ @ci_commits
+ end
end
def define_show_vars