diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-15 13:44:15 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-23 15:37:43 -0500 |
commit | bc4fec1fcbf848bec682b59f2f47b1648eee9b44 (patch) | |
tree | e2f9e3f9512cb13b7c91a5a1e837dfd76b7ed06a /app/controllers/projects/compare_controller.rb | |
parent | 7c479d88a92233790bc0fb63146fe004f8b9b5d7 (diff) | |
download | gitlab-ce-bc4fec1fcbf848bec682b59f2f47b1648eee9b44.tar.gz |
Remove @commit in compare and MR controllers
Diffstat (limited to 'app/controllers/projects/compare_controller.rb')
-rw-r--r-- | app/controllers/projects/compare_controller.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/projects/compare_controller.rb b/app/controllers/projects/compare_controller.rb index 7ec542bb2df..88dd600e5fe 100644 --- a/app/controllers/projects/compare_controller.rb +++ b/app/controllers/projects/compare_controller.rb @@ -51,12 +51,9 @@ class Projects::CompareController < Projects::ApplicationController if @compare @commits = @compare.commits - @start_commit = @compare.start_commit - @commit = @compare.commit - @diffs = @compare.diffs(diff_options) - environment_params = @repository.branch_exists?(@head_ref) ? { ref: @head_ref } : { commit: @commit } + environment_params = @repository.branch_exists?(@head_ref) ? { ref: @head_ref } : { commit: @compare.commit } @environment = EnvironmentsFinder.new(@project, current_user, environment_params).execute.last @diff_notes_disabled = true |