diff options
Diffstat (limited to 'app/services/repositories/base_service.rb')
-rw-r--r-- | app/services/repositories/base_service.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/services/repositories/base_service.rb b/app/services/repositories/base_service.rb index a99a65b7edb..efb6f6de8db 100644 --- a/app/services/repositories/base_service.rb +++ b/app/services/repositories/base_service.rb @@ -8,20 +8,19 @@ class Repositories::BaseService < BaseService attr_reader :repository delegate :container, :disk_path, :full_path, to: :repository - delegate :repository_storage, to: :container def initialize(repository) @repository = repository end def repo_exists?(path) - gitlab_shell.repository_exists?(repository_storage, path + '.git') + gitlab_shell.repository_exists?(repository.shard, path + '.git') end def mv_repository(from_path, to_path) return true unless repo_exists?(from_path) - gitlab_shell.mv_repository(repository_storage, from_path, to_path) + gitlab_shell.mv_repository(repository.shard, from_path, to_path) end # Build a path for removing repositories |