diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-08-02 04:14:44 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2017-08-22 07:33:20 +0300 |
commit | 950c87308aa7e9f3ae5bf84790d30d6fcb688fc8 (patch) | |
tree | 3bfe1a7ee1481be6e88d1b4b719b483d383adaa5 /app/models/concerns | |
parent | cdafffcf158977e39161c1ad0516d91cef66ddbc (diff) |
Move create_repository back to project model as we can use disk_path and share it
Diffstat (limited to 'app/models/concerns')
-rw-r--r-- | app/models/concerns/storage/legacy_project.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/app/models/concerns/storage/legacy_project.rb b/app/models/concerns/storage/legacy_project.rb index 815db712285..c38042495f4 100644 --- a/app/models/concerns/storage/legacy_project.rb +++ b/app/models/concerns/storage/legacy_project.rb @@ -59,18 +59,5 @@ module Storage Gitlab::UploadsTransfer.new.rename_project(path_was, path, namespace.full_path) Gitlab::PagesTransfer.new.rename_project(path_was, path, namespace.full_path) end - - def create_repository(force: false) - # Forked import is handled asynchronously - return if forked? && !force - - if gitlab_shell.add_repository(repository_storage_path, path_with_namespace) - repository.after_create - true - else - errors.add(:base, 'Failed to create repository via gitlab-shell') - false - end - end end end |