diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-02-18 11:58:04 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-02-19 13:15:42 -0500 |
commit | 5ef3f80d41198bff244f6a6d2e3146b4741e81c1 (patch) | |
tree | 580a551b8814e6149cd8f1d55a8b61fd7dcb17a0 /app/controllers/projects/commit_controller.rb | |
parent | 78d3444fa7db81e2e2f947e066a3bbe6514be9ef (diff) | |
download | gitlab-ce-5ef3f80d41198bff244f6a6d2e3146b4741e81c1.tar.gz |
More updates from the last code review.
Diffstat (limited to 'app/controllers/projects/commit_controller.rb')
-rw-r--r-- | app/controllers/projects/commit_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects/commit_controller.rb b/app/controllers/projects/commit_controller.rb index d87a6fffc9c..97d31a4229a 100644 --- a/app/controllers/projects/commit_controller.rb +++ b/app/controllers/projects/commit_controller.rb @@ -11,7 +11,6 @@ class Projects::CommitController < Projects::ApplicationController before_action :authorize_read_commit_status!, only: [:builds] before_action :commit before_action :define_show_vars, only: [:show, :builds] - before_action :assign_revert_commit_vars, only: [:revert] before_action :authorize_edit_tree!, only: [:revert] def show @@ -60,6 +59,8 @@ class Projects::CommitController < Projects::ApplicationController end def revert + assign_revert_commit_vars + return render_404 if @target_branch.blank? create_commit(Commits::RevertService, success_notice: "The #{revert_type_title} has been successfully reverted.", |