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:
Diffstat (limited to 'app/models/bulk_imports/entity.rb')
-rw-r--r--app/models/bulk_imports/entity.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/models/bulk_imports/entity.rb b/app/models/bulk_imports/entity.rb
index 644673e249e..437118c36e8 100644
--- a/app/models/bulk_imports/entity.rb
+++ b/app/models/bulk_imports/entity.rb
@@ -196,6 +196,10 @@ class BulkImports::Entity < ApplicationRecord
update!(has_failures: true)
end
+ def source_version
+ @source_version ||= bulk_import.source_version_info
+ end
+
private
def validate_parent_is_a_group
@@ -240,7 +244,9 @@ class BulkImports::Entity < ApplicationRecord
errors.add(
:source_full_path,
- Gitlab::Regex.bulk_import_source_full_path_regex_message
+ s_('BulkImport|must have a relative path structure with no HTTP ' \
+ 'protocol characters, or leading or trailing forward slashes. Path segments must not start or ' \
+ 'end with a special character, and must not contain consecutive special characters')
)
end
end