diff options
Diffstat (limited to 'app/services/files/create_service.rb')
-rw-r--r-- | app/services/files/create_service.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/services/files/create_service.rb b/app/services/files/create_service.rb index b8ae03842a3..a954564946b 100644 --- a/app/services/files/create_service.rb +++ b/app/services/files/create_service.rb @@ -1,10 +1,11 @@ module Files class CreateService < Files::BaseService def create_commit! - Lfs::FileTransformer.link_lfs_objects(project, @branch_name) do |transformer| - content_or_lfs_pointer = transformer.new_file(@file_path, @file_content) - create_transformed_commit(content_or_lfs_pointer) - end + transformer = Lfs::FileTransformer.new(project, @branch_name) + + result = transformer.new_file(@file_path, @file_content) + + create_transformed_commit(result.content) end private |