diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-01 10:10:39 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-01 10:10:39 +0200 |
commit | feec3a45eb517607d96f5553f36e7d35c97520ba (patch) | |
tree | db037849302326f1ecdd2916687fadd00330cdba /app/controllers/projects/commit_controller.rb | |
parent | 95b010fb73832b1bcfba884b9bcfd87d2954e44c (diff) | |
download | gitlab-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.rb | 5 |
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 |