Commit d63339ec2fb772a9cb214a300c0ff6dc684e99b2
1 parent
4d24c3bb
Exists in
master
and in
4 other branches
fix update_hooks task
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/tasks/update_hooks.rake
@@ -4,7 +4,7 @@ task :update_hooks => :environment do | @@ -4,7 +4,7 @@ task :update_hooks => :environment do | ||
4 | Project.find_each(:batch_size => 100) do |project| | 4 | Project.find_each(:batch_size => 100) do |project| |
5 | begin | 5 | begin |
6 | if project.commit | 6 | if project.commit |
7 | - project.repository.write_hooks | 7 | + project.write_hooks |
8 | print ".".green | 8 | print ".".green |
9 | end | 9 | end |
10 | rescue Exception => e | 10 | rescue Exception => e |