diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-07 09:09:06 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-07 09:09:06 +0000 |
commit | dc7cd84a3edeab2f799e3a99edf33bf2a381eee7 (patch) | |
tree | 44b902f672e6bdef2d8852d233b4046ce18320cf /app/controllers/projects/commit_controller.rb | |
parent | e28ed4a6b2aece29230c5dd0e08a0fd458663627 (diff) | |
download | gitlab-ce-dc7cd84a3edeab2f799e3a99edf33bf2a381eee7.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/projects/commit_controller.rb')
-rw-r--r-- | app/controllers/projects/commit_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/commit_controller.rb b/app/controllers/projects/commit_controller.rb index 0c78f239523..fdf66340cbb 100644 --- a/app/controllers/projects/commit_controller.rb +++ b/app/controllers/projects/commit_controller.rb @@ -168,7 +168,7 @@ class Projects::CommitController < Projects::ApplicationController @diffs = commit.diffs(opts) @notes_count = commit.notes.count - @environment = EnvironmentsFinder.new(@project, current_user, commit: @commit, find_latest: true).execute.last + @environment = EnvironmentsByDeploymentsFinder.new(@project, current_user, commit: @commit, find_latest: true).execute.last end # rubocop: disable CodeReuse/ActiveRecord |