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
path: root/app
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-11 03:09:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-11 03:09:06 +0300
commita9104a50136e485c8dda7af37106332f9010a1e8 (patch)
tree26880b70033a0952d7801c9554b99cea827820dd /app
parent696b36294520f8a311586f99e838b6a61b1b3f32 (diff)
Add latest changes from gitlab-org/gitlab@master76926-follow-up-from-resolve-multi-selection-for-delete-on-registry-page
Diffstat (limited to 'app')
-rw-r--r--app/models/repository.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index e04db65fa94..ae19e6b8120 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -1130,6 +1130,12 @@ class Repository
true
end
+ def create_from_bundle(bundle_path)
+ raw.create_from_bundle(bundle_path).tap do |result|
+ after_create if result
+ end
+ end
+
def blobs_metadata(paths, ref = 'HEAD')
references = Array.wrap(paths).map { |path| [ref, path] }