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
cb86f223
Commit
cb86f223
authored
Mar 05, 2020
by
Matthias Kaeppler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop de-dup feature toggle
parent
91d59c17
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
lib/gitlab/import_export/project/tree_restorer.rb
lib/gitlab/import_export/project/tree_restorer.rb
+1
-4
No files found.
lib/gitlab/import_export/project/tree_restorer.rb
View file @
cb86f223
...
...
@@ -43,10 +43,7 @@ module Gitlab
def
read_tree_hash
path
=
File
.
join
(
@shared
.
export_path
,
'project.json'
)
dedup_entries
=
large_project?
(
path
)
&&
Feature
.
enabled?
(
:dedup_project_import_metadata
,
project
.
group
)
@tree_loader
.
load
(
path
,
dedup_entries:
dedup_entries
)
@tree_loader
.
load
(
path
,
dedup_entries:
large_project?
(
path
))
rescue
=>
e
Rails
.
logger
.
error
(
"Import/Export error:
#{
e
.
message
}
"
)
# rubocop:disable Gitlab/RailsLogger
raise
Gitlab
::
ImportExport
::
Error
.
new
(
'Incorrect JSON format'
)
...
...
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