summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorTakuya Noguchi <tak.noguchi.iridge@gmail.com>2016-12-27 16:30:52 +0900
committerTakuya Noguchi <tak.noguchi.iridge@gmail.com>2017-01-19 18:04:02 +0900
commit2dd5db749f3bb5458bc09b81077fe91b81298930 (patch)
treeee472c93f592f0035072c8bbca9ad15c3d4419d6 /app/controllers
parent6c62482144e786f83ed62298e06604e46e93107e (diff)
downloadgitlab-ce-2dd5db749f3bb5458bc09b81077fe91b81298930.tar.gz
Add sorting pipeline for a commit
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/commit_controller.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/controllers/projects/commit_controller.rb b/app/controllers/projects/commit_controller.rb
index 791ed88db30..bfc59bcc862 100644
--- a/app/controllers/projects/commit_controller.rb
+++ b/app/controllers/projects/commit_controller.rb
@@ -12,7 +12,6 @@ class Projects::CommitController < Projects::ApplicationController
before_action :authorize_read_pipeline!, only: [:pipelines]
before_action :commit
before_action :define_commit_vars, only: [:show, :diff_for_path, :pipelines]
- before_action :define_status_vars, only: [:show, :pipelines]
before_action :define_note_vars, only: [:show, :diff_for_path]
before_action :authorize_edit_tree!, only: [:revert, :cherry_pick]
@@ -106,10 +105,6 @@ class Projects::CommitController < Projects::ApplicationController
}
end
- def define_status_vars
- @ci_pipelines = project.pipelines.where(sha: commit.sha)
- end
-
def assign_change_commit_vars(mr_source_branch)
@commit = project.commit(params[:id])
@target_branch = params[:target_branch]