diff options
Diffstat (limited to 'lib/tasks/gitolite_rebuild.rake')
-rw-r--r-- | lib/tasks/gitolite_rebuild.rake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/tasks/gitolite_rebuild.rake b/lib/tasks/gitolite_rebuild.rake new file mode 100644 index 00000000000..5cf496196eb --- /dev/null +++ b/lib/tasks/gitolite_rebuild.rake @@ -0,0 +1,11 @@ +desc "Rebuild each project at gitolite config" +task :gitolite_rebuild => :environment do + puts "Starting..." + Project.find_each(:batch_size => 100) do |project| + puts + puts "=== #{project.name}" + project.update_repository + puts + end + puts "Done" +end |