diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2017-03-20 13:01:06 +0100 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2017-03-21 12:27:04 +0100 |
commit | 163ba974a4962af23815367b78d2678080e281a2 (patch) | |
tree | df8702f6753f1e192bfebaa819d48c293f543427 /app | |
parent | 46146e33f2f8dcbd52ee50eb9142887344b8c367 (diff) | |
download | gitlab-ce-163ba974a4962af23815367b78d2678080e281a2.tar.gz |
Fix CreateBranchService after Repository#commit_file was renamed to create_file
Closes #29687
Diffstat (limited to 'app')
-rw-r--r-- | app/services/create_branch_service.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/create_branch_service.rb b/app/services/create_branch_service.rb index b07338d500a..673ed02f952 100644 --- a/app/services/create_branch_service.rb +++ b/app/services/create_branch_service.rb @@ -25,12 +25,12 @@ class CreateBranchService < BaseService private def create_master_branch - project.repository.commit_file( + project.repository.create_file( current_user, '/README.md', '', message: 'Add README.md', - branch_name: 'master', - update: false) + branch_name: 'master' + ) end end |