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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
e5cf4cd7
Commit
e5cf4cd7
authored
Jun 13, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected a few warnings
parent
6f0c5033
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
lib/gitlab/import_export/importer.rb
lib/gitlab/import_export/importer.rb
+1
-1
lib/gitlab/import_export/project_tree_restorer.rb
lib/gitlab/import_export/project_tree_restorer.rb
+1
-1
lib/gitlab/import_export/repo_restorer.rb
lib/gitlab/import_export/repo_restorer.rb
+1
-1
No files found.
lib/gitlab/import_export/importer.rb
View file @
e5cf4cd7
...
@@ -7,7 +7,7 @@ module Gitlab
...
@@ -7,7 +7,7 @@ module Gitlab
new
(
*
args
).
import
new
(
*
args
).
import
end
end
def
initialize
(
archive_file:
,
shared
:)
def
initialize
(
archive_file
:,
shared
:)
@archive_file
=
archive_file
@archive_file
=
archive_file
@shared
=
shared
@shared
=
shared
end
end
...
...
lib/gitlab/import_export/project_tree_restorer.rb
View file @
e5cf4cd7
...
@@ -73,7 +73,7 @@ module Gitlab
...
@@ -73,7 +73,7 @@ module Gitlab
relation
.
values
.
flatten
.
each
do
|
sub_relation
|
relation
.
values
.
flatten
.
each
do
|
sub_relation
|
if
sub_relation
.
is_a?
(
Hash
)
if
sub_relation
.
is_a?
(
Hash
)
relation_hash
=
relation_item
[
sub_relation
.
keys
.
first
.
to_s
]
relation_hash
=
relation_item
[
sub_relation
.
keys
.
first
.
to_s
]
sub_relation
=
sub_relation
.
keys
.
first
sub_relation
=
sub_relation
.
keys
.
first
else
else
relation_hash
=
relation_item
[
sub_relation
.
to_s
]
relation_hash
=
relation_item
[
sub_relation
.
to_s
]
...
...
lib/gitlab/import_export/repo_restorer.rb
View file @
e5cf4cd7
...
@@ -11,7 +11,7 @@ module Gitlab
...
@@ -11,7 +11,7 @@ module Gitlab
end
end
def
restore
def
restore
return
false
unless
File
.
exist
s
?
(
@path_to_bundle
)
||
wiki?
return
false
unless
File
.
exist?
(
@path_to_bundle
)
||
wiki?
FileUtils
.
mkdir_p
(
path_to_repo
)
FileUtils
.
mkdir_p
(
path_to_repo
)
...
...
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