diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/internal.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb index 8b5d2259b45..ccf181402f9 100644 --- a/lib/api/internal.rb +++ b/lib/api/internal.rb @@ -20,12 +20,7 @@ module API def project_path @project_path ||= begin project_path = params[:project].sub(/\.git\z/, '') - - Gitlab.config.repositories.storages.each do |_, storage_path| - project_path.sub!(storage_path, '') - end - - project_path + Repository.remove_storage_from_path(project_path) end end |