diff options
author | James Lopez <james@jameslopez.es> | 2016-05-13 13:12:21 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-05-13 13:12:21 +0200 |
commit | 8eb67187d04f49f88afc13cdc3d0d591bb1e2a20 (patch) | |
tree | cc38ce6289fa6fa91adf4d442ce97af0d2aca765 /app/services | |
parent | 491a312724076f5113766b5fb55f38fee316dd38 (diff) | |
download | gitlab-ce-8eb67187d04f49f88afc13cdc3d0d591bb1e2a20.tar.gz |
removed transaction stufffix/import-data-issue
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/projects/create_service.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/services/projects/create_service.rb b/app/services/projects/create_service.rb index 2687544ae62..6728fabea1e 100644 --- a/app/services/projects/create_service.rb +++ b/app/services/projects/create_service.rb @@ -52,7 +52,7 @@ module Projects save_project_and_import_data(import_data) - start_import if @project.import? + @project.import_start if @project.import? after_create_actions if @project.persisted? @@ -94,12 +94,6 @@ module Projects end end - def start_import - Project.transaction do - @project.import_start - end - end - def save_project_and_import_data(import_data) Project.transaction do @project.create_or_update_import_data(data: import_data[:data], credentials: import_data[:credentials]) if import_data |