fix update_hooks task
This commit is contained in:
parent
4d24c3bb21
commit
d63339ec2f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue