Commit d63339ec authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

fix update_hooks task

parent 4d24c3bb
...@@ -4,7 +4,7 @@ task :update_hooks => :environment do ...@@ -4,7 +4,7 @@ task :update_hooks => :environment do
Project.find_each(:batch_size => 100) do |project| Project.find_each(:batch_size => 100) do |project|
begin begin
if project.commit if project.commit
project.repository.write_hooks project.write_hooks
print ".".green print ".".green
end end
rescue Exception => e rescue Exception => e
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment