BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
import_export.rb
lib/gitlab/import_export.rb
+1
-3
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