Check that target_branch is present.

This commit is contained in:
Rubén Dávila 2016-02-08 11:44:31 -05:00 committed by Robert Speicher
parent e22cdb40ec
commit 1469b72c46
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class Projects::CommitController < Projects::ApplicationController
end
def revert
# return render_404 unless @commit_params.values.all?
return render_404 if @target_branch.blank?
create_commit(Commits::RevertService, success_notice: "The commit has been successfully reverted.",
success_path: namespace_project_commits_path(@project.namespace, @project, @target_branch),