diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-14 11:21:52 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-14 11:21:52 +0200 |
commit | 14fbff00b59ad3aeff7d585039720bb5743b13da (patch) | |
tree | b995c502b81f26c749685fdd7c33ec1b83af236a /app | |
parent | 613208c360f9f091a9994be2db107a46270e5fe4 (diff) | |
download | gitlab-ce-14fbff00b59ad3aeff7d585039720bb5743b13da.tar.gz |
Add specs for changing default branch in a project
Diffstat (limited to 'app')
-rw-r--r-- | app/services/projects/update_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/projects/update_service.rb b/app/services/projects/update_service.rb index ad71fa2af15..30ca95eef7a 100644 --- a/app/services/projects/update_service.rb +++ b/app/services/projects/update_service.rb @@ -10,7 +10,7 @@ module Projects end if changing_default_branch? - project.change_head(new_branch) + project.change_head(params[:default_branch]) end if project.update_attributes(params.except(:default_branch)) |