diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-25 15:16:24 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-25 15:16:24 +0100 |
commit | 00c631573f1f7564cfd8d823dce761fc6c76e2bc (patch) | |
tree | d3315948fbad937af5f461c0d22c42a4f72b8c3a /app/controllers/import | |
parent | 9c6f0487950f1b510d7222885ed8591607b4fe9b (diff) | |
download | gitlab-ce-00c631573f1f7564cfd8d823dce761fc6c76e2bc.tar.gz |
Fix Gitorious import status page hiding of already added projects.
Diffstat (limited to 'app/controllers/import')
-rw-r--r-- | app/controllers/import/gitorious_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/import/gitorious_controller.rb b/app/controllers/import/gitorious_controller.rb index 627b4a171b8..6067a87ee04 100644 --- a/app/controllers/import/gitorious_controller.rb +++ b/app/controllers/import/gitorious_controller.rb @@ -15,7 +15,7 @@ class Import::GitoriousController < Import::BaseController @already_added_projects = current_user.created_projects.where(import_type: "gitorious") already_added_projects_names = @already_added_projects.pluck(:import_source) - @repos.to_a.reject! { |repo| already_added_projects_names.include? repo.full_name } + @repos.reject! { |repo| already_added_projects_names.include? repo.full_name } end def jobs |