From 5127e1fd6790edcb0ad3ef3c237808610b0e1f72 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 2 Oct 2013 21:45:32 +0100 Subject: [PATCH] Don't install the trac git hook on non-trac servers --- cookbooks/git/recipes/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/git/recipes/server.rb b/cookbooks/git/recipes/server.rb index a287c6199..f8f0ef3d4 100644 --- a/cookbooks/git/recipes/server.rb +++ b/cookbooks/git/recipes/server.rb @@ -61,7 +61,7 @@ Dir.new(git_directory).select { |name| name =~ /\.git$/ }.each do |repository| mode 0755 end - if repository != "dns.git" + if node[:recipes].include?("trace") and repository != "dns.git" template "#{git_directory}/#{repository}/hooks/post-receive" do source "post-receive.erb" owner "root" -- 2.39.5