'rake update_hooks' broken
Closed
'rake update_hooks' broken
Created by: superbobry
After Project
model refactoring in cd06d6ed. The fix is a one liner though:
diff --git a/lib/tasks/update_hooks.rake b/lib/tasks/update_hooks.rake
index 472023c..8deaf95 100644
--- a/lib/tasks/update_hooks.rake
+++ b/lib/tasks/update_hooks.rake
@@ -4,7 +4,7 @@ task :update_hooks => :environment do
Project.find_each(:batch_size => 100) do |project|
begin
if project.commit
- project.repository.write_hooks
+ project.write_hooks
print ".".green
end
rescue Exception => e
Created by: dzaporozhets
By Administrator on 2012-03-11T08:51:01 (imported from GitLab project)
Please register or sign in to reply