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-04-22 13:18:11 +0300
committerJames Lopez <james@jameslopez.es>2016-04-22 13:18:11 +0300
commit42567436863c96b7f184cc7a728b2da3d18852c8 (patch)
treee58392ef2400aa392adab0985c6b087d00de60e4 /lib/gitlab/import_export.rb
parent2d503f6410ec6e6bbad0e3df0f69d3ea94038333 (diff)
refactored path stuff
Diffstat (limited to 'lib/gitlab/import_export.rb')
-rw-r--r--lib/gitlab/import_export.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/import_export.rb b/lib/gitlab/import_export.rb
index fe88850c33d..539eae13f33 100644
--- a/lib/gitlab/import_export.rb
+++ b/lib/gitlab/import_export.rb
@@ -3,7 +3,7 @@ module Gitlab
extend self
def export_path(relative_path:)
- File.join(storage_path, relative_path, "#{Time.now.strftime('%Y-%m-%d_%H-%M-%3N')}_gitlab_export")
+ File.join(storage_path, relative_path)
end
def project_atts
@@ -14,8 +14,6 @@ module Gitlab
Gitlab::ImportExport::ImportExportReader.project_tree
end
- private
-
def storage_path
File.join(Settings.shared['path'], 'tmp/project_exports')
end