diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-02-08 11:44:31 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-02-19 13:14:51 -0500 |
commit | 1469b72c462264e3b969a59c8411e4c403731975 (patch) | |
tree | 78b398f407c9157e6f95d382d88f16ae9ae4228f /app/controllers | |
parent | e22cdb40ec29178576a147a62e7bfe119ada9a25 (diff) | |
download | gitlab-ce-1469b72c462264e3b969a59c8411e4c403731975.tar.gz |
Check that target_branch is present.
Diffstat (limited to 'app/controllers')
-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 21579b5629d..330285306ef 100644 --- a/app/controllers/projects/commit_controller.rb +++ b/app/controllers/projects/commit_controller.rb @@ -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), |