diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-02-14 18:18:05 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-02-24 11:43:20 +0200 |
commit | 71a844cdaee129d4e300c20cbb27db009cf81b73 (patch) | |
tree | dfd520e826c08f2ff8e2938bf995922d0de511f6 /app/services/files | |
parent | 7561b1c2a486ae57e9fbebadadbe1269bfdba6a0 (diff) | |
download | gitlab-ce-71a844cdaee129d4e300c20cbb27db009cf81b73.tar.gz |
Web Editor: save to new branch
Diffstat (limited to 'app/services/files')
-rw-r--r-- | app/services/files/create_service.rb | 3 | ||||
-rw-r--r-- | app/services/files/update_service.rb | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/services/files/create_service.rb b/app/services/files/create_service.rb index 2c457ef2cef..de5322e990a 100644 --- a/app/services/files/create_service.rb +++ b/app/services/files/create_service.rb @@ -38,7 +38,8 @@ module Files created_successfully = new_file_action.commit!( params[:content], params[:commit_message], - params[:encoding] + params[:encoding], + params[:new_branch] ) if created_successfully diff --git a/app/services/files/update_service.rb b/app/services/files/update_service.rb index bcf0e7f3cee..328cf3a4b06 100644 --- a/app/services/files/update_service.rb +++ b/app/services/files/update_service.rb @@ -23,7 +23,8 @@ module Files edit_file_action.commit!( params[:content], params[:commit_message], - params[:encoding] + params[:encoding], + params[:new_branch] ) success |