diff options
author | James Lopez <james@jameslopez.es> | 2016-05-05 12:01:18 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-05-05 12:01:18 +0200 |
commit | 6612ca096a496caaa0d30724190964df8aac2f46 (patch) | |
tree | 6bc4cbdff2e567292664c7ee175b0f26d06aedb3 /app/services | |
parent | 773c39cca3cc6c4f9edd9387e99d3a85924ac5af (diff) | |
download | gitlab-ce-6612ca096a496caaa0d30724190964df8aac2f46.tar.gz |
update repo and wiki repo bundler to use git bundle instead of compressing via tar
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/projects/import_export/export_service.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/projects/import_export/export_service.rb b/app/services/projects/import_export/export_service.rb index 5d5573cba5c..47ceff18af6 100644 --- a/app/services/projects/import_export/export_service.rb +++ b/app/services/projects/import_export/export_service.rb @@ -4,8 +4,10 @@ module Projects def execute(options = {}) @shared = Gitlab::ImportExport::Shared.new(relative_path: File.join(project.path_with_namespace, 'work')) + # TODO handle errors save_project_tree bundle_repo + bundle_wiki_repo save_all end @@ -19,6 +21,10 @@ module Projects Gitlab::ImportExport::RepoBundler.new(project: project, shared: @shared).bundle end + def bundle_wiki_repo + Gitlab::ImportExport::WikiRepoBundler.new(project: project, shared: @shared).bundle + end + def save_all Gitlab::ImportExport::Saver.save(storage_path: @shared.export_path) end |