summaryrefslogtreecommitdiff
path: root/app/services/files
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-02-14 18:18:05 +0200
committerValery Sizov <vsv2711@gmail.com>2015-02-24 11:43:20 +0200
commit71a844cdaee129d4e300c20cbb27db009cf81b73 (patch)
treedfd520e826c08f2ff8e2938bf995922d0de511f6 /app/services/files
parent7561b1c2a486ae57e9fbebadadbe1269bfdba6a0 (diff)
downloadgitlab-ce-71a844cdaee129d4e300c20cbb27db009cf81b73.tar.gz
Web Editor: save to new branch
Diffstat (limited to 'app/services/files')
-rw-r--r--app/services/files/create_service.rb3
-rw-r--r--app/services/files/update_service.rb3
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