diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-11 00:09:06 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-11 00:09:06 +0000 |
commit | a9104a50136e485c8dda7af37106332f9010a1e8 (patch) | |
tree | 26880b70033a0952d7801c9554b99cea827820dd /app/models/repository.rb | |
parent | 696b36294520f8a311586f99e838b6a61b1b3f32 (diff) | |
download | gitlab-ce-a9104a50136e485c8dda7af37106332f9010a1e8.tar.gz |
Add latest changes from gitlab-org/gitlab@master76926-follow-up-from-resolve-multi-selection-for-delete-on-registry-page
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 6 |
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] } |