Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
42567436
Commit
42567436
authored
Apr 22, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactored path stuff
parent
2d503f64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
lib/gitlab/import_export.rb
lib/gitlab/import_export.rb
+1
-3
lib/gitlab/import_export/saver.rb
lib/gitlab/import_export/saver.rb
+1
-1
No files found.
lib/gitlab/import_export.rb
View file @
42567436
...
...
@@ -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
...
...
lib/gitlab/import_export/saver.rb
View file @
42567436
...
...
@@ -31,7 +31,7 @@ module Gitlab
end
def
archive_file
@archive_file
||=
File
.
join
(
@storage_path
,
'..'
,
'project.tar.gz'
)
@archive_file
||=
File
.
join
(
@storage_path
,
'..'
,
"
#{
Time
.
now
.
strftime
(
'%Y-%m-%d_%H-%M-%3N'
)
}
_project_export.tar.gz"
)
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment