summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorMarkus Koller <markus-koller@gmx.ch>2016-12-03 17:00:04 +0100
committerMarkus Koller <markus-koller@gmx.ch>2016-12-21 16:36:53 +0100
commit6fd58ee48dcfbca49c609c45004d6c25035af2eb (patch)
treeb431e0d3ad16d830ef991132ae5f13f70e9b07a5 /lib/tasks
parentb8d8fd70d53a90fba6631d9cce573fcfdc24a270 (diff)
downloadgitlab-ce-6fd58ee48dcfbca49c609c45004d6c25035af2eb.tar.gz
Remove rake task update_commit_count
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/update_commit_count.rake20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/tasks/gitlab/update_commit_count.rake b/lib/tasks/gitlab/update_commit_count.rake
deleted file mode 100644
index 3bd10b0208b..00000000000
--- a/lib/tasks/gitlab/update_commit_count.rake
+++ /dev/null
@@ -1,20 +0,0 @@
-namespace :gitlab do
- desc "GitLab | Update commit count for projects"
- task update_commit_count: :environment do
- projects = Project.where(commit_count: 0)
- puts "#{projects.size} projects need to be updated. This might take a while."
- ask_to_continue unless ENV['force'] == 'yes'
-
- projects.find_each(batch_size: 100) do |project|
- print "#{project.name_with_namespace.color(:yellow)} ... "
-
- unless project.repo_exists?
- puts "skipping, because the repo is empty".color(:magenta)
- next
- end
-
- project.update_commit_count
- puts project.commit_count.to_s.color(:green)
- end
- end
-end