summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/pipelines_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/pipelines_controller.rb b/app/controllers/projects/pipelines_controller.rb
index 1282913d981..b36081205d8 100644
--- a/app/controllers/projects/pipelines_controller.rb
+++ b/app/controllers/projects/pipelines_controller.rb
@@ -15,7 +15,7 @@ class Projects::PipelinesController < Projects::ApplicationController
end
def new
- @pipeline = project.ci_commits.new
+ @pipeline = project.ci_commits.new(ref: @project.default_branch)
end
def create
@@ -46,7 +46,7 @@ class Projects::PipelinesController < Projects::ApplicationController
private
def create_params
- params.permit(:ref)
+ params.require(:pipeline).permit(:ref)
end
def pipeline