summaryrefslogtreecommitdiff
path: root/app/controllers/import
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-02-25 12:18:15 +0200
committerValery Sizov <vsv2711@gmail.com>2015-02-25 12:18:15 +0200
commit9c6f0487950f1b510d7222885ed8591607b4fe9b (patch)
tree03d12f5a15e3240c2d122bc2443911971e119238 /app/controllers/import
parenta30a56634d3ea44ccfc69c037324b502456f9aba (diff)
downloadgitlab-ce-9c6f0487950f1b510d7222885ed8591607b4fe9b.tar.gz
Fix GitLab importer. Hide already imported projects
Diffstat (limited to 'app/controllers/import')
-rw-r--r--app/controllers/import/gitlab_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/import/gitlab_controller.rb b/app/controllers/import/gitlab_controller.rb
index a51ea36aff8..c18178abf76 100644
--- a/app/controllers/import/gitlab_controller.rb
+++ b/app/controllers/import/gitlab_controller.rb
@@ -16,7 +16,7 @@ class Import::GitlabController < Import::BaseController
@already_added_projects = current_user.created_projects.where(import_type: "gitlab")
already_added_projects_names = @already_added_projects.pluck(:import_source)
- @repos.to_a.reject!{ |repo| already_added_projects_names.include? repo["path_with_namespace"] }
+ @repos = @repos.to_a.reject{ |repo| already_added_projects_names.include? repo["path_with_namespace"] }
end
def jobs