diff --git a/lib/tasks/gitlab/activate_namespaces.rake b/lib/tasks/gitlab/activate_namespaces.rake
index 637964e151c019b0449a18fd4f6afc2a0716e19c..08df0a8040ba3152344d91295ecd887a8a0adf40 100644
--- a/lib/tasks/gitlab/activate_namespaces.rake
+++ b/lib/tasks/gitlab/activate_namespaces.rake
@@ -31,7 +31,6 @@ namespace :gitlab do
 
     Project.where('namespace_id IS NOT NULL').find_each(batch_size: 500) do |project|
       next unless project.group
-      next if project.empty_repo?
 
       group = project.group