Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-05-06 14:40:02 +0300
committerJames Lopez <james@jameslopez.es>2016-05-06 14:40:02 +0300
commitce598b05414d52b31437dbe19412eb6a9a16f1b5 (patch)
tree34349e8e2c95ae01c0e219cedd42e335ef0e9321 /app/services/projects/import_export
parent6612ca096a496caaa0d30724190964df8aac2f46 (diff)
fixed and refactored a few things based on MR feedback
Diffstat (limited to 'app/services/projects/import_export')
-rw-r--r--app/services/projects/import_export/export_service.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/services/projects/import_export/export_service.rb b/app/services/projects/import_export/export_service.rb
index 47ceff18af6..fd569e1c9ae 100644
--- a/app/services/projects/import_export/export_service.rb
+++ b/app/services/projects/import_export/export_service.rb
@@ -5,10 +5,7 @@ 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
+ save_all if [save_project_tree, bundle_repo, bundle_wiki_repo].all?
end
private