Commit 1469b72c authored by Rubén Dávila's avatar Rubén Dávila Committed by Robert Speicher
Browse files

Check that target_branch is present.

parent e22cdb40
......@@ -60,7 +60,7 @@ def branches
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),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment