summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-05-17 16:30:50 +0200
committerJames Lopez <james@jameslopez.es>2016-05-17 16:30:50 +0200
commit5bd3e8a8bac61091d5d85bfa44a6a9027e6a7786 (patch)
treed10665ebbb63ec6010ca979e4ac6733987be0e42
parentf48184cbc6d8951156ac5af6821f0a47dbc1c588 (diff)
parent7733f56d80f84ada4c4fef8cc4a5ab9357af0dc5 (diff)
downloadgitlab-ce-5bd3e8a8bac61091d5d85bfa44a6a9027e6a7786.tar.gz
Merge branches 'feature/project-export' and 'feature/project-import' of gitlab.com:gitlab-org/gitlab-ce into feature/project-import
-rw-r--r--lib/gitlab/import_export/project_tree_saver.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/import_export/project_tree_saver.rb b/lib/gitlab/import_export/project_tree_saver.rb
index ce69dd4971e..e4674b6cd0b 100644
--- a/lib/gitlab/import_export/project_tree_saver.rb
+++ b/lib/gitlab/import_export/project_tree_saver.rb
@@ -10,6 +10,8 @@ module Gitlab
end
def save
+ FileUtils.mkdir_p(@shared.export_path)
+
File.write(full_path, project_json_tree)
true
rescue => e