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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-05 15:10:33 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-05 15:10:33 +0300
commit023e050d82ed11d9060ce5bdaec99c3871b98164 (patch)
treeee89e2c83c2771c635a0c1daaa88fcce25f18612 /lib/gitlab/import_export.rb
parent1c568d834d0cbe1bbbf558ac9a45940f6dbda37a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/import_export.rb')
-rw-r--r--lib/gitlab/import_export.rb18
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/gitlab/import_export.rb b/lib/gitlab/import_export.rb
index c4867746b0f..231f2a977c0 100644
--- a/lib/gitlab/import_export.rb
+++ b/lib/gitlab/import_export.rb
@@ -99,11 +99,19 @@ module Gitlab
def group_config_file
Rails.root.join('lib/gitlab/import_export/group/import_export.yml')
end
+
+ def group_wiki_repo_bundle_filename(group_id)
+ "#{group_id}.wiki.bundle"
+ end
+
+ def group_wiki_repo_bundle_path(shared, filename)
+ File.join(shared.export_path, 'repositories', filename)
+ end
+
+ def group_wiki_repo_bundle_full_path(shared, group_id)
+ group_wiki_repo_bundle_path(shared, group_wiki_repo_bundle_filename(group_id))
+ end
end
end
-Gitlab::ImportExport.prepend_if_ee('EE::Gitlab::ImportExport')
-
-# The methods in `Gitlab::ImportExport::GroupHelper` should be available as both
-# instance and class methods.
-Gitlab::ImportExport.extend_if_ee('Gitlab::ImportExport::GroupHelper')
+Gitlab::ImportExport.prepend_mod